Advertisement
riking

Untitled

Jun 10th, 2015
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. up: input
  2. right:stack
  3. # end detector
  4.  
  5. MOV 0,RIGHT
  6. S:MOV UP,ACC
  7. JEZ SIGNAL
  8. MOV ACC,RIGHT
  9. JMP S
  10. SIGNAL:MOV 0,DOWN
  11. MOV DOWN,NIL
  12. ---
  13. up: end detector
  14. right: outputter
  15. # passer
  16.  
  17. MOV UP,RIGHT
  18. ---
  19. up: stack
  20. left: passer
  21. # outputter
  22.  
  23. MOV LEFT,NIL
  24. L:MOV UP,ACC
  25. MOV ACC,DOWN
  26. JNZ L
  27. MOV 0,LEFT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement