Reorder key scan to permit fall through to save a couple of bytes

This commit is contained in:
Neil McPhail 2024-10-22 11:08:09 +00:00
parent 223d284939
commit 30105450d6

View File

@ -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