See He.re! - code collaboration pastebin See He.re! BestNa.me - The Best Name for Your Needs

Paste search
Recent pastes
Forgot password?
hello world
  1. ;Hello World for 6502 CPU (C64)
  2. ;Assembler used: win2c64
  3.     LDY #$00      ;init loop counter
  4. L0
  5.     LDA L1,Y      ;load a byte of the text
  6.     BEQ L2        ;if zero -> end
  7.     JSR $FFD2     ;call CHROUT
  8.     INY           ;inc loop counter
  9.     jmp L0        ;thanks to paul nicholls
  10. L1
  11.     .byte "hello world",0
  12. L2
  13.     RTS
Parsed in 0.015 seconds