Skip to content

Instantly share code, notes, and snippets.

@drbig
Last active Aug 29, 2015
Embed
What would you like to do?
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