From 30a679ba360c5b80dcc472fab3886347aaed9e75 Mon Sep 17 00:00:00 2001 From: IrgendwerA8 Date: Sat, 26 May 2018 20:25:51 +0200 Subject: [PATCH] Saved 3 bytes for the C16 target. --- libsrc/c16/cgetc.s | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5