t3x.org / t3x / t3x-manual / 48.html
 
T3X - A Minimum Procedural Language
Version 8.1.5, Online Edition
Copyright(C) 1996-2004
Nils M Holm
 
Previous:
4.7 Symbols Used to Describe Tcode
TOC | Index | Back Next:
4.9 Context Manipulation

4.8 Declarations

0xA003   BPW   N   -   Bytes Per Word declaration

Specify the number of bytes per word (N) on the machine that generated the Tcode module including this instruction. If a BPW instruction is present, the module containg BPW may only be processed by backends (such as native code generators or virtual Tcode machines) that use the same machine word size. Modules not containing any BPW instructions may be processed by any backend. If multiple BPW records are present in one module, they must all declare the same value.

0xA004   CLAB   L   -   Code LABel

Define a label identified by the value L which tags a subsequent procedure.

0xA007   CREF   L   -   Code REFerence

Define a word-size storage location holding the address of the procedure tagged by the label L.

0xA006   DATA   N   -   DATA definition

Define a word-size storage location containing the value N.

0xA009   VEC   N   -   VECtor declaration

Define a vector with a length of N machine words and undefined content.

0xA005   DLAB   L   -   Data LABel

Define a label identified by the value L which tags a subsequent data object.

0xA008   DREF   L   -   Data REFerence

Define a word-size storage location holding the address of the data object tagged by the label L.

0xC001   INIT   8   L   -   INITialize

Originally used to initialize the Tcode environment - hence its name. Each program must begin with this instruction. The argument N specifies the Tcode version the program complies to. This document describes version 8 of the Tcode language. L is a code label tagging the initial entry point of the Tcode module containing the instruction. This label may be evaluated by a Tcode linker. This is not a jump instruction.

0xB00A   STR   N   C1 ... CN   -   STRing definition

Define a vector with a length of

(N+BPW) / BPW

machine words containing the characters C1 through CN. Each character is stored in a separate byte. All trailing bytes of the vector are filled with zeroes so that a properly terminated string is created.

Previous:
4.7 Symbols Used to Describe Tcode
TOC | Index | Back Next:
4.9 Context Manipulation