emailler/client/drivers/c64inputs.s

13 lines
200 B
ArmAsm

.export get_key
.code
;use C64 Kernel ROM function to read a key
;inputs: none
;outputs: A contains ASCII value of key just pressed
get_key:
jsr $ffe4
cmp #0
beq get_key
rts