Skip to content

Instantly share code, notes, and snippets.

@drbig
Last active August 29, 2015 14:10
Show Gist options
  • Save drbig/c6a4212864b57929f8a0 to your computer and use it in GitHub Desktop.
Save drbig/c6a4212864b57929f8a0 to your computer and use it in GitHub Desktop.
Hello world with c64asm
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