From: IrgendwerA8 Date: Sat, 26 May 2018 18:25:51 +0000 (+0200) Subject: Saved 3 bytes for the C16 target. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=30a679ba360c5b80dcc472fab3886347aaed9e75;p=cc65 Saved 3 bytes for the C16 target. --- diff --git a/libsrc/c16/cgetc.s b/libsrc/c16/cgetc.s index 3ee31a757..a61373ac7 100644 --- a/libsrc/c16/cgetc.s +++ b/libsrc/c16/cgetc.s @@ -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