Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.27 KB

readme.md

File metadata and controls

34 lines (29 loc) · 1.27 KB

Spec

COMMAND INITIAL STACK (bot->top)RESULT (STACK)


  • (add) <value1 + value2>
  • (subtract) <value1 - value2>
  • (multiply) <value1 * value2> / (divide) <value1 / value2> (nb. integer) % (modulo) ! (not) <0 if value non-zero, 1 otherwise> ` (greater) <1 if value1 > value2, 0 otherwise>

    (right) PC -> right < (left) PC -> left ^ (up) PC -> up v (down) PC -> down ? (random) PC -> right? left? up? down? ??? _ (horizontal if) PC->left if , else PC->right | (vertical if) PC->up if , else PC->down " (stringmode) Toggles 'stringmode' : (dup) \ (swap) > $ (pop) pops but does nothing . (output int) outputs as integer , (output char) outputs as ASCII /# (bridge) 'jumps' PC one farther; skips over next command g (get) <value at (x,y)> p (put) puts at (x,y) & (input int) ~ (input character) @ (end) ends program