Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. converttoString:
  2. pshy
  3. pshd
  4. pshx
  5. LDAB #3
  6. LDAA #20
  7. clearSpaces:
  8. STAA 1,y+
  9. DBNE b,clearSpaces
  10. LDAA #$00
  11. STAA 1,y-
  12. LDD 0,Y
  13. nextDigit:
  14. LDX #10
  15. idiv
  16. addb #$30
  17. STAB 1,Y-
  18. XGDX
  19. CPD #00
  20. bne nextDigit
  21. converttoStringDone:
  22. STX 8,SP
  23. PULX
  24. PULD
  25. PULY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement