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
115
edits