Reorder key scan to permit fall through to save a couple of bytes
This commit is contained in:
parent
223d284939
commit
30105450d6
11
xylo.asm
11
xylo.asm
@ -22,11 +22,10 @@ read_keyboard:
|
||||
rra
|
||||
jr nc, key_4
|
||||
rra
|
||||
jr nc, key_5
|
||||
jr read_keyboard
|
||||
jr c, read_keyboard
|
||||
|
||||
key_1:
|
||||
ld de, 0x0000
|
||||
key_5:
|
||||
ld de, 0x040C
|
||||
jr invoke
|
||||
|
||||
key_2:
|
||||
@ -41,8 +40,8 @@ key_4:
|
||||
ld de, 0x0309
|
||||
jr invoke
|
||||
|
||||
key_5:
|
||||
ld de, 0x040C
|
||||
key_1:
|
||||
ld de, 0x0000
|
||||
invoke:
|
||||
push de
|
||||
call highlight_key
|
||||
|
Loading…
Reference in New Issue
Block a user