0
I am writing an emulator and can't seem to find info on this. What I know is that devices trigger a pulse on the IRQ wire. But the explanations online don't include how the CPU deals with that. Does an interrupt literally cause the CPU to drop everything and take care of it? Or does the CPU check the state of the IRQ during each cycle? Also, what about other ways of handling interrupts? For example, the Nintendo Game Boy apparently uses a reserved location in memory as an interrupt flag, which tells the CPU where to call a subroutine for handling that interrupt (my best guess is that this flag is written to by DMA). Is this common or standard on older systems?