mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Saved 3 bytes for the C16 target.
This commit is contained in:
parent
49a9b88734
commit
30a679ba36
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user