Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: maximinus on Apr 7th, 2012  |  syntax: None  |  size: 0.58 KB  |  views: 222  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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