Strange because waiting for a keypress and then waiting until the key is released works ......
But this doesn't work but it looks the same code to me:
The above code always detect a key as not_pressed.
Greetings
Kees
Code:
;======================================================================; PRSKEY; Wait for keypress and release;======================================================================prskey:bit PORT_Abpl prskeyrelkey:bit PORT_Abmi relkeyrts
Code:
;----------------------------------------------------------------------; KTEST; Check if key in A is pressed; return clc if pressed; return sec if not pressed;----------------------------------------------------------------------ktest:sta tmpbit PORT_Abpl not_pressed; BUG MAME, bit 7 not set ....lda PORT_Acmp tmpbeq pressednot_pressed:secrtspressed:clcrts
Greetings
Kees
Statistics: Posted by oss003 — Wed Jan 22, 2025 10:28 pm