Advertisement
maximinus

Untitled

Apr 7th, 2012
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ;All operand types, presented in various ways
  2.  
  3. :start set a, 5
  4. set a, b
  5. set a, [b]
  6. set a, [b + 3]
  7. set a, [3 + b] ;both ways should be acceptable
  8. set a, [b+3] ;spaces should not be forced
  9. set a, POP
  10. set a, PEEK
  11. set PUSH, a
  12. set a, start
  13. set a, [start]
  14. set a, PC
  15. set a, SP
  16. set a, O
  17.  
  18. ;reverse these
  19.  
  20. ;set 5, a ;allowable in the spec though
  21.  
  22. set b, a
  23. set [b], a
  24. set [b + 3], a
  25. set [3 + b], a
  26. set [b+3], a
  27. set POP, a
  28. set PEEK, a
  29. set a, PUSH
  30. set start, a
  31. set [start], a
  32. set PC, a
  33. set SP, a
  34. set O, a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement