t3x.org / t3x / t3x-manual / 372.html
 
T3X - A Minimum Procedural Language
Version 8.1.5, Online Edition
Copyright(C) 1996-2004
Nils M Holm
 
Previous:
3.7.1 TCODE Class Usage
TOC | Index | Back Next:
3.7.3 Tcode Instruction Format

3.7.2 TCODE Instructions

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