11 .if SOFT80COLORVOODOO = 1
12 .import soft80_putcolor
16 lda KEY_COUNT ; Get number of characters
17 bne L3 ; Jump if there are already chars waiting
19 jsr invertcursor ; set cursor on or off accordingly
21 L1: lda KEY_COUNT ; wait for key
24 jsr invertcursor ; set cursor on or off accordingly
26 L3: jsr KBDREAD ; Read char and return in A
30 ; Switch the cursor on or off (invert)
41 lda #$34 ; enable RAM under I/O
45 .if SOFT80COLORVOODOO = 1
49 sta (CRAM_PTR),y ; vram
69 nibble: .byte $f0, $0f