SirCmpwn

Untitled

Jun 14th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. SET A, 0
  2. some_loop:
  3. SET B, some_code
  4. ADD B, A
  5. JSR B
  6. ADD A, 1
  7. IFN A, 10
  8. SET PC, somewhere_else
  9. SET PC, some_loop
  10.  
  11. some_code:
  12. SET C, 100
  13. some_chain: ; shitty example, I know
  14. ADD C, 1
  15. ADD C, 1
  16. ADD C, 1
  17. ADD C, 1
  18. ADD C, 1
  19. ADD C, 1
  20. ADD C, 1
  21. ADD C, 1
  22. ADD C, 1
  23. ADD C, 1
  24. SET PC, POP ; By the way, how does the assembler figure out where this routine ends and more dead code starts?
Advertisement
Add Comment
Please, Sign In to add comment