mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-13 16:30:01 +00:00
Comment WAI/interrupt behaviour.
This commit is contained in:
parent
fae3445e58
commit
6d7f0abef0
@ -71,6 +71,14 @@ rk65c02_assert_irq(rk65c02emu_t *e)
|
||||
*/
|
||||
e->irq = true;
|
||||
|
||||
/*
|
||||
* If the CPU was put to sleep by executing WAI instruction, resume
|
||||
* operation.
|
||||
*
|
||||
* Whether interrupt will immediately be serviced, or not, depends
|
||||
* on normal "interrupt disable" flag behaviour, so here we just
|
||||
* need to start the CPU.
|
||||
*/
|
||||
if ((e->state == STOPPED) && (e->stopreason == WAI))
|
||||
rk65c02_start(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user