Created
May 21, 2023 11:29
-
-
Save jarrodhroberson/fa50e3b9d88bff2acfa0ae969bbbdb7a to your computer and use it in GitHub Desktop.
Hello World! C= 64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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