next up previous contents index
Next: Using functions and procedures Up: Statements Previous: Structured statements

Assembler statements

An assembler statement allows you to insert assembler code right in your pascal code.


Assembler statements

syntdiag3923

syntdiag3927

More information about assembler blocks can be found in the Programmer's guideThe register list is used to indicate the registers that are modified by an assembler statement in your code. The compiler stores certain results in the registers. If you modify the registers in an assembler statement, the compiler should, sometimes, be told about it. The registers are denoted with their Intel names for the I386 processor, i.e., 'EAX', 'ESI' etc...

As an example, consider the following assembler code:


listing3888
This will tell the compiler that it should save and restore the contents of the EAX and EBX registers when it encounters this asm statement.


next up previous contents index
Next: Using functions and procedures Up: Statements Previous: Structured statements

Michael Van Canneyt
Fri Sep 25 09:15:40 MEST 1998