1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-10 18:29:35 +00:00

Comment WAI/interrupt behaviour.

This commit is contained in:
Radosław Kujawa 2018-04-13 11:25:30 +02:00
parent fae3445e58
commit 6d7f0abef0

View File

@ -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);
}