re of the crsr state
; -------------------------------------

print_to_screen:
  jsr cursor_off
  jsr plot_char
  jsr cursor_on
  rts

; -------------------------------------
; print char to screen
; char = $ff means no output
; chr in A
; X and Y unaffected
; -------------------------------------

plot_char:
  sta temp_ptr_x ; save char
  txa         ; save registers
  pha
  tya
  pha
  lda temp_ptr_x ; restore char

; PETSCII to ScreenCode (SC)
; --- $c0-$ff ---   - illegal -
  c