[fpc-pascal]Var parameter passing to asm procedure

Marco van de Voort marcov at stack.nl
Thu Aug 5 18:03:54 CEST 2004


> The asm block can be this way:
> 
> procedure increment(var x: dword); assembler;
> asm
>    inc [eax]
> end;
> 
> You don't need to worry about segment registers, but don't mess with them!
> I assume that the parameter x is passed on the eax register as Delphi does.
> Please correct me if I'm wrong...

You are wrong.

He is using 1.0.x, which doesn't have register parameters. That is 1.9.2 or
1.9.4+





More information about the fpc-pascal mailing list