![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_GTE opcode for greater-than-or-equal comparison in the VM. More...
Go to the source code of this file.
Functions | |
| if (a.type !=VAL_INT||b.type !=VAL_INT) | |
| push_value (vm, make_int(a.i >=b.i ? 1 :0)) | |
| free_value (a) | |
| free_value (b) | |
Variables | |
| case | OP_GTE |
| Value | a = pop_value(vm) |
| break | |
Implements the OP_GTE opcode for greater-than-or-equal comparison in the VM.
This file handles the OP_GTE instruction, which checks if the first value is greater than or equal to the second. The values are popped from the stack, and the result (1 or 0) is pushed back.
Behavior:
Error Handling:
Example: // Bytecode: OP_GTE // Stack before: [42, 42] // Stack after: [1]
Definition in file gte.c.
| free_value | ( | a | ) |
| free_value | ( | b | ) |
| push_value | ( | vm | , |
| make_int(a.i >=b.i ? 1 :0) | ) |