.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
.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
.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
.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
.segment "LOWCODE" ; Accesses the ROM - must go into low mem
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
+ inc CURS_FLAG ; Mark it as off
lda CURS_STATE ; Cursor currently displayed?
beq crs8 ; Jump if no
ldy CURS_X ; Get the character column