Using ROM to read keys

Wait for a Single Keypress
Routine which waits for a single key to pressed. The ASCII code of the key is loaded into A.

ld hl,23560 ld (hl),0 loop  ld a,(hl) cp 0 jr z,loop