-
Notifications
You must be signed in to change notification settings - Fork 7
Opcodes
_nebula edited this page Apr 9, 2025
·
2 revisions
(Return type defined by this table.)
Takes two values from the stack, adds them together, and pushes the result onto the stack.
If either or both of the values are strings, or are variables representing strings, both are converting to strings and concatenated together. For example:
- 5 ADD 6 = 11
- 5 ADD "5" = 55
- "test" ADD 2 = "test2"
(Return type defined by this table.)
Takes two values from the stack, logical ANDs them together, and pushes the result.
Branches to the provided label. Does not affect the stack.
Takes a bool from the stack, and branches to the provided label if the value is false.
Takes a bool from the stack, and branches to the provided label if the value is true.
Takes one value from the stack and discards it.
Takes an RValue from the stack and returns it, stopping code execution.
| Type 1 \ Type 2 | Int32 (i) | Boolean (b) | String (s) | Double (d) | Int64 (l) | RValue (v) | None |
|---|---|---|---|---|---|---|---|
| Int32 (i) | i | i | i | d | l | v | i |
| Boolean (b) | i | b | b | d | l | v | b |
| String (s) | i | b | s | d | l | v | s |
| Double (d) | d | d | d | d | d | v | d |
| Int64 (l) | l | l | l | d | l | v | l |
| RValue (v) | v | v | v | v | v | v | v |