Advertisement
igomezpr

Endless Counter (sort of)

Nov 11th, 2012
3,235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Template for 10c.co DCPU-16 tutorials
  2.  
  3. ; Include some boilerplate
  4. #include <boilerplate.dasm>
  5.  
  6.     ; Add your code here
  7. SET A, 0
  8. count:
  9. SET X, 0
  10. SET Y, 1
  11. ADD A, 1
  12. JSR print_dec
  13. SET PC, count
  14. end:
  15.     SET PC, end ; Loop forever
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement