Home
Random
Watchlist
Settings
Log in
About CPCWiki - THE Amstrad CPC encyclopedia!
Disclaimers
Open main menu
Changes
Programming:Keyboard redefinition
9 bytes removed
,
08:57, 15 January 2014
/* Key redefinition library */
ret
;check if there is a key is down at (HL);only the first key found is returned
;return carry is a key is down
;return key code in A : key code = (line*8)+bit
rrca
rrca
ld E,A
ld D,0
add HL,DE
;so we get the address
pop AF
;now get the
and 7
inc A
← Older edit
Newer edit →
Fano
115
edits