MCPcopy Create free account
hub / github.com/OneLoneCoder/olcNES / irq

Method irq

Part#2 - CPU/olc6502.cpp:196–224  ·  view source on GitHub ↗

Interrupt requests are a complex operation and only happen if the "disable interrupt" flag is 0. IRQs can happen at any time, but you dont want them to be destructive to the operation of the running program. Therefore the current instruction is allowed to finish (which I facilitate by doing the whole thing when cycles == 0) and then the current program counter is stored on the stack. Then the curr

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

OnUserUpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected