odd_instruction_opcode¶
Syntax¶
odd_instruction_opcode(instruction)
Parameters¶
| Name | Description |
|---|---|
| instruction | The Instruction to get the opcode of. |
Returns¶
odd_opcode: The opcode of the given Instruction.
Description¶
Gets the odd_opcode of the given Instruction.
Example¶
var inst = odd_create_instruction(odd_opcode.DebugLine, 20, undefined);
show_debug_message(string(odd_instruction_opcode(inst)));
This would print “208” (the numerical value for the DebugLine opcode) to the console.