1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00

Saved 3 bytes for the C16 target.

This commit is contained in:
IrgendwerA8 2018-05-26 20:25:51 +02:00
parent 49a9b88734
commit 30a679ba36

View File

@ -60,8 +60,10 @@ L2: jsr KBDREAD ; Read char and return in A
.proc initkbd
ldy #15
ldy #7
@L1: lda fnkeys,y
sta FKEY_SPACE+8,y
lda #$01 ; Lower 8 places are all $01
sta FKEY_SPACE,y
dey
bpl @L1
@ -69,8 +71,7 @@ L2: jsr KBDREAD ; Read char and return in A
.endproc
fnkeys: .byte $01, $01, $01, $01, $01, $01, $01, $01
.byte 133, 137, 134, 138, 135, 139, 136, 140
fnkeys: .byte 133, 137, 134, 138, 135, 139, 136, 140
.code