Previous: 2.3.6. Prefixes To the Table of Contents Next: 2.3.8. Registers
2.3.6. Prefixes Table of Contents 2.3.8. Registers

- 2.3.7. -
Table of Contents
2. TMT Pascal Language Description
2.3. Built-in Assembler
2.3.7. Opcodes


2.3.7. Opcodes


The opcodes are either instruction mnemonics or assembly directives. The list of supported instruction opcodes is given below. The only assembly directives that are allowed in TMT Pascal are DB, DW, and DD.

Example
asm
   DB  'a','b','c'
   DB  'This code was copyrighted by GnueWare'
   DW  1,2,4,8,16,$20,40h
   DD  Offset HeapLo
end;
The DB, DW, and DD directive allow variable number of arguments, separated by commas. The other commonly used assembly directives can be emulated with Pascal statements. For instance, the EQU directive is emulated with const, while STRUCTs can be defined with the type record declaration.


Previous: 2.3.6. Prefixes To the Table of Contents Next: 2.3.8. Registers
2.3.6. Prefixes Table of Contents 2.3.8. Registers

- 2.3.7. -