Skip to content

Command set

a-stone-arachnid edited this page Dec 3, 2020 · 5 revisions

Commands

Command Description
@ Set the current cell to 0
; Square the current cell
] Increments the current cell
[ Decrements the current cell
. Print the current cell as a number
, Print the current cell as a character
" Get an integer from input
' Get a character from input
: Set a label
| Jump back to the nearest label, or the start if there's no previous label
{ Jump back to the nearest label if the cell is 0
} Jump back to the nearest label if the cell is not 0
< Move the cell pointer left
> Move the cell pointer right
= Compare cell p and p+1, and put the result in cell p+2
! Exit

Navigation:

Clone this wiki locally