- 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.
- 2.3.7. -