Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Space][Space][Space][Tab][LF] Put a 1 on the stack
  2. [LF][Space][Space][Space][Tab][Space][Space] [Space][Space][Tab][Tab][LF] Set a Label at this point
  3. [Space][LF][Space] Duplicate the top stack item
  4. [Tab][LF][Space][Tab] Output the current value
  5. [Space][Space][Space][Tab][Space][Tab][Space][LF] Put 10 (newline) on the stack...
  6. [Tab][LF][Space][Space] ...and output the newline
  7. [Space][Space][Space][Tab][LF] Put a 1 on the stack
  8. [Tab][Space][Space][Space] Addition. This increments our current value.
  9. [Space][LF][Space] Duplicate that value so we can test it
  10. [Space][Space][Space][Tab][Space][Tab][Tab][LF] Push 11 onto the stack
  11. [Tab][Space][Space][Tab] Subtraction. So if we've reached the end, we have a zero on the stack.
  12. [LF][Tab][Space][Space][Tab][Space][Space] [Space][Tab][Space][Tab][LF] If we have a zero, jump to the end
  13. [LF][Space][LF][Space][Tab][Space] [Space][Space][Space][Tab][Tab][LF] Jump to the start
  14. [LF][Space][Space][Space][Tab][Space] [Space][Space][Tab][Space][Tab][LF] Set the end label
  15. [Space][LF][LF] Discard our accumulator, to be tidy
  16. [LF][LF][LF] Finish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement