mnaberez / py65

Emulate 6502-based microcomputer systems in Python
BSD 3-Clause "New" or "Revised" License
234 stars 68 forks source link

IRQ Support #66

Closed sifferman closed 3 years ago

sifferman commented 3 years ago

Is there a way to trigger IRQs? Is it possible for the PC to jump to the IRQ vector at $fffe?

If not, is there a way to simulate an IRQ? I can manually

  1. Decrement SP by 2 with .registers
  2. Put PC into sp and sp+1 with .fill
  3. Go to IRQ vector with .goto

But is there an easy way to do this autonomously? I'd like to use py65 to run tests on my 6502 programs via GitHub Actions.

sifferman commented 3 years ago

Oh, nevermind. I just noticed Added irq() and nmi() to the MPU.