Advertisement

Whitespace solution for Day 0: Hello, World

Dec 30th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. |Prints_hello_and_repeats_input_line|Push:72(H):
  2. |Print:char:
  3. |Push:101(e):
  4. |Print:char:
  5. |Push:108(l):
  6. |Duplicate:
  7. |Duplicate:
  8. |Print:char:
  9. |Print:char:
  10. |Push:111(o):
  11. |Duplicate:
  12. |Print:char:
  13. |Push:44(comma):
  14. |Print:char:
  15. |Push:32(space):
  16. |Print:char:
  17. |Push:87(W):
  18. |Print:char:
  19. |Print:char
  20. |Push:114(r):
  21. |Print:char:
  22. |Print:char:
  23. |Push:100(d):
  24. |Print:char:
  25. |Push:46(period):
  26. |Print:char:
  27. |Push:10(newline):
  28. |Print:char:
  29. |Push:10(newline):
  30. |Label:10001(Loop_Start):
  31. |Push:0:
  32. |Read:char:
  33. |Push:0:
  34. |Retrieve: |Duplicate:
  35. |JmpZero:10010(Loop_End):
  36. |Duplicate:
  37. |Push:11(newline):
  38. |Subtract: |JmpNeg:10010(Loop_End):
  39. |Print:char:
  40. |Jmp:10001(Loop_Start):
  41. |Label:10010(Loop_End):
  42. |Discard:
  43.  
  44. |Print:char:
  45. |EOF:
  46.  
  47.  
  48. |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement