I tried the described solution brought by https://www.chibiakumas.com/68000/sinclairql.php:
Code: Select all
move.b #%11111111,$18021 ;Clear interrupt bits
move.b $18021,d0 ;Read in interrupt state
tst.b d0 ;Wait for an interrupt
It works with Qemulator (however very notchy).
With a real QL it does not work at all regardless the ROM version (tested with Minerva and MGG).
What is the best way to solve it? How do/did this the guys in the games/demos (as a part of "game/demo loop")?