Previous: Prefixes To the Table of Content Next: Registers

- 2.3.7 -
TMT Pascal Language Description
Built-in Assembler

Assembler 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: Prefixes To the Table of Content Next: Registers
Prefixes Table of Content Registers

- 2.3.7 -