7 .include "osic1p.inc"
\r
9 .include "zeropage.inc"
\r
11 ; Input routine from 65V PROM MONITOR, show cursor if enabled
\r
13 lda cursor ; show cursor?
\r
16 lda (SCREEN_PTR),y ; fetch current character
\r
18 lda #$A1 ; full white square
\r
19 sta (SCREEN_PTR),y ; store at cursor position
\r
21 jsr INPUTC ; get input character in A
\r
23 beq done ; was cursor on?
\r
25 lda tmp1 ; fetch saved character
\r
27 sta (SCREEN_PTR),y ; store at cursor position
\r
28 txa ; restore saved character from X
\r
29 ldx #$00 ; high byte of int return value
\r