next up previous contents index
Next: Assembler procedures and Up: Using assembler in your Previous: Using assembler in your

Assembler statements

The following is an example of assembler inclusion in your code.

 ...
 Statements;
 ...
 Asm
   your asm code here
   ...
 end;
 ...
 Statements;

The assembler instructions between the Asm and end keywords will be inserted in the assembler generated by the compiler.

You can still use conditionals in your assembler, the compiler will recognise it, and treat it as any other conditionals.

Remark: Before version 0.99.1, Free Pascal did not support reference to variables by their names in the assembler parts of your code.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998