wai doesn't appear to wait for an interrupt. If I enable only the vsync the attached .prg should draw one dot every frame, so slowly draw a line from 0,0. (The colour is the value of ISR.) So should be $01 (vsync) + $08 (aflow)
In the emulator as wai is not held, the image is all $08 apart from the one tick where vsync is set. I've included a second .prg where there is no wai, and the output is the same indicating that it is not actually doing anything.
wai
doesn't appear to wait for an interrupt. If I enable only the vsync the attached .prg should draw one dot every frame, so slowly draw a line from 0,0. (The colour is the value of ISR.) So should be $01 (vsync) + $08 (aflow)In the emulator as
wai
is not held, the image is all $08 apart from the one tick where vsync is set. I've included a second .prg where there is nowai
, and the output is the same indicating that it is not actually doing anything.example.zip