|
| Previous: 3.7.1 TCODE Class Usage | TOC | Index | Back | Next: 3.7.3 Tcode Instruction Format |
To access the opcode of a specific Tcode instruction, use the class constant notation
TCODE.IINSTRUCTION
For example, to load the variable X with the opcode of the JUMP instruction, use
X := TCODE.IJUMP;
The special constant IENDOFSET contains a value which is one above the highest value representing a Tcode instruction. To check if a variable J contains a valid instruction, the following code may be used:
IF ((J & 0x7F) .>= TCODE.IENDOFSET)
; ! Call your illegal instruction handler here
| Previous: 3.7.1 TCODE Class Usage | TOC | Index | Back | Next: 3.7.3 Tcode Instruction Format |