Skip to content

Instantly share code, notes, and snippets.

@jarrodhroberson
Created May 21, 2023 11:29
Show Gist options
  • Save jarrodhroberson/fa50e3b9d88bff2acfa0ae969bbbdb7a to your computer and use it in GitHub Desktop.
Save jarrodhroberson/fa50e3b9d88bff2acfa0ae969bbbdb7a to your computer and use it in GitHub Desktop.
Hello World! C= 64
; program start
Start
jsr $FF81 ; CINT (clear screen)
sei ; turn off interrupts
ldy #0
sty $d020 ; reset border color
Loop
lda Message,y ; load message byte
beq EOM ; 0 = end of string
clc
adc #$c0 ; + 192
sta $400+41,y ; store to screen
iny
bne Loop ; next character
EOM
Message
byte "HELLO`WORLDa"
byte 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment