RosettaCodeData/Task/Terminal-control-Inverse-video/6502-Assembly/terminal-control-inverse-video.6502
2017-09-25 22:28:19 +02:00

22 lines
666 B
Text

; C64 - Terminal control: Inverse Video
; *** labels ***
strout = $ab1e
; *** main ***
*=$02a8 ; sys 680
lda #<str ; Address of the message to print - low byte
ldy #>str ; Address high byte
jsr strout ; Print a null terminated string.
rts
; *** data ***
str .byte $12 ; the REVERSE ON control code
; see https://en.wikipedia.org/wiki/PETSCII
.text "reversed"
.byte $92 ; the REVERSE OFF control code
.null " normal" ; null terminated string