Last active
August 29, 2015 14:10
-
-
Save drbig/c6a4212864b57929f8a0 to your computer and use it in GitHub Desktop.
Hello world with c64asm
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
hello_world = AsmMacro.new do | |
jsr 0xe544 # clear | |
ldx.d 0 | |
label :read | |
lda.ax :msg | |
cmp.d 35 | |
beq :finish | |
jsr 0xffd2 # chrout | |
inx | |
jmp :read | |
label :finish | |
rts | |
label :msg | |
data "HELLO WORLD#" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment