Home
Random
Watchlist
Settings
Log in
About CPCWiki - THE Amstrad CPC encyclopedia!
Disclaimers
Open main menu
Changes
Programming:Keyboard redefinition
5 bytes added
,
20:14, 15 January 2014
/* Key redefinition library */
GetPressed
push HL
ld C,10.loop_col
ld B,8
ld A,(HL++).loop_bit rla
jr nc,.pressed
djnz .loop_bit
dec C
.loop
rra ;get bit in carry
djnz .loop
ccf ;reverse bit
pop HL
← Older edit
Newer edit →
Fano
115
edits