54575: If key-press was enqueued then return index of last key pressed, else wait for key-press and return index
54575 |
LD A,0 |
54577 |
OR A |
54578 |
JR NZ,54584 |
54580 |
XOR A |
54581 |
LD (23560),A |
54584 |
HALT |
54585 |
LD A,(23560) |
54588 |
OR A |
54589 |
JR Z,54584 |
54591 |
EX AF,AF' |
54592 |
XOR A |
54593 |
LD (54576),A |
54596 |
EX AF,AF' |
54597 |
RET |