@L2: and #$7F ; Mask out avail flag
sta KEYBUF
+ ldy $209
+ cpy #$A5
+ bne @L3
+ ora #$80 ; FUNCT pressed
; Done
- rts
+@L3: rts
.endproc
; ------------------------------------------------------------------------
-; Switch the cursor off, disable capslock
+; Switch the cursor off, disable capslock. Code goes into the INIT segment
+; which may be reused after it is run.
+
+.segment "INIT"
initcgetc:
lda STATUS