63668: If key-press was enqueued then return index of last key pressed, else wait for key-press and return index
63668 |
LD A,0 |
63670 |
OR A |
63671 |
JR NZ,63677 |
63673 |
XOR A |
63674 |
LD (23560),A |
63677 |
HALT |
63678 |
LD A,(23560) |
63681 |
OR A |
63682 |
JR Z,63677 |
63684 |
EX AF,AF' |
63685 |
XOR A |
63686 |
LD (63669),A |
63689 |
EX AF,AF' |
63690 |
RET |