Advertisement
przemko

Hello world

Nov 26th, 2016
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; hello.asm
  2. ;
  3. ; $ xa hello.asm
  4. ; $ run6502 -l 600 a.o65 -R 600 -P 1000 -X 0
  5. ; Hello, world!
  6. ; $
  7.  
  8. putchar =   $1000
  9.     *=  $600
  10. start   ldx #$00
  11. loop    lda msg,x
  12.     beq stop
  13.     jsr putchar
  14.     inx
  15.     jmp loop
  16. msg .asc    "Hello, world!", 10, 0
  17. stop    brk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement