Add support for clr instruction
This commit is contained in:
@@ -24,4 +24,7 @@ List of available instructions:
|
||||
| ``0x12`` | ``JL x`` | Jump to ``x`` **if** top element ``< 0 `` |
|
||||
| ``0x13`` | ``JGE x`` | Jump to ``x`` **if** top element ``>= 0`` |
|
||||
| ``0x14`` | ``JLE x`` | Jump to ``x`` **if** top element ``<= 0`` |
|
||||
| ``0x15`` | ``LD x`` | Push local variable to stack |
|
||||
| ``0x15`` | ``LD x`` | Push local variable to stack |
|
||||
| ``0x16`` | ``IN`` | Read input from stdin |
|
||||
| ``0x17`` | ``OUT`` | Put top stack value to stdout as char |
|
||||
| ``0x18`` | ``CLR x`` | Wipe out ``x`` values before the top value from the stack |
|
||||
Reference in New Issue
Block a user