![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_SWAP opcode for stack manipulation in the VM. More...

Go to the source code of this file.
Functions | |
| exit (1) | |
Variables | |
| case | OP_SWAP |
| case Runtime | error |
| Value | a = vm->stack[vm->sp] |
| Value | b = vm->stack[vm->sp - 1] |
| vm | stack [vm->sp] = b |
| break | |
Implements the OP_SWAP opcode for stack manipulation in the VM.
This file handles the OP_SWAP instruction, which swaps the top two values on the stack.
Behavior:
Error Handling:
Definition in file swap.c.
| exit | ( | 1 | ) |