> Ok, then this can be this way:
> 
> procedure increment(var x: dword); assembler;
> asm
>     mov eax, x
>     inc [eax]
> end;
> 
> Is this correct? If the compiler uses registers, the first line is  
> translated to a 'mov eax, eax', otherwise it is something like 'mov eax,  
> [esp-4]'.

Afaik, it is correct, unless there is something with inc [eax] (e.g. not
working on older ones)


_______________________________________________
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to