From: IrgendwerA8 Date: Sat, 26 May 2018 14:33:19 +0000 (+0200) Subject: 1 byte code size donation for Fabrizio ;) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea463d95e37602be8d7b659aac0dbde045deb214;p=cc65 1 byte code size donation for Fabrizio ;) --- diff --git a/libsrc/vic20/cgetc.s b/libsrc/vic20/cgetc.s index 4d3a30ea2..9371805d2 100644 --- a/libsrc/vic20/cgetc.s +++ b/libsrc/vic20/cgetc.s @@ -40,8 +40,8 @@ L3: jsr KBDREAD ; Read char and return in A bne seton ; Go set it on lda CURS_FLAG ; Is the cursor currently off? bne crs9 ; Jump if yes - lda #1 - sta CURS_FLAG ; Mark it as off + inx ; X is now 1 + stx CURS_FLAG ; Mark it as off lda CURS_STATE ; Cursor currently displayed? beq crs8 ; Jump if no ldy CURS_X ; Get the character column