- 2.3.3. -
Table of Contents
2. TMT Pascal Language Description
2.3. Built-in Assembler
2.3.3. Code Procedure
2.3.3. Code Procedure
Besides the assembler-routine you can use the code-routine.
It has the following differences: the compiler doesn't emit
the frame command on enter and return from the routine
(including the ret command), and the local parameters
are based on ESP on the moment of entry.
Example:
function hi (n: word); code;
asm
mov al, byte ptr [n+1]
ret
end;
- 2.3.3. -