Advertisement
prjbrook

C:\TinyC\MyFiles9May20\tackOn0.asm

May 8th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. START ORG 0 ;asm file to tack omnto arduino hex or bin file for uploading into nano.
  2. seq
  3. req
  4. ;seq
  5. ldi $03 ;careful, we have some nops up there.
  6. phi 2 ;R2 is stack pointer
  7. ldi $45
  8. plo 2 ;R2=stack pointer now points to $00ff
  9. sex 2 ;X now pnts to R2, the stack pointer. 00ff
  10. loop0
  11. ldi $0f ;want output this byte on channel 1
  12. ;stxd
  13. ;stxd
  14. inc 2
  15. ;str 2
  16. loop1
  17. nop
  18. nop
  19. ;out 1
  20. ;inp 3
  21. lbr highadr
  22. ORG $345
  23. DB $11,$22,$33,$44,$55
  24. ORG $3fb
  25. nop
  26. nop
  27. nop
  28. nop
  29. nop
  30. ORG $4000
  31. highadr
  32. ldi $01
  33. phi 7
  34. lbr loop1
  35.  
  36.  
  37. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement