indigodarkwolf / box16

A fork of the official X16 emulator, converted to C++20 and with a bunch of features tweaked and added.
MIT License
41 stars 18 forks source link

wai doesn't appear to wait for an interrupt #77

Closed Yazwh0 closed 1 year ago

Yazwh0 commented 1 year ago

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.

example.zip

(copied from the x16 emulator)

indigodarkwolf commented 1 year ago

On latest code, I believe Box16 is behaving correctly with regards to WAI. There may have been some fix that went into Box16 that was never ported back to x16emu.

Yazwh0 commented 1 year ago

Yeah, sorry, jsut saw that.