Previous: 2.3.2. Assembler Procedure To the Table of Contents Next: 2.3.4. Command Syntax
2.3.2. Assembler Procedure Table of Contents 2.3.4. Command Syntax

- 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;



Previous: 2.3.2. Assembler Procedure To the Table of Contents Next: 2.3.4. Command Syntax
2.3.2. Assembler Procedure Table of Contents 2.3.4. Command Syntax

- 2.3.3. -