Thomas Schatzl wrote:
In this case
procedure nx_fill(P: PLongword; Count: Longint; Value: Longword);
assembler;
asm
pushl %edi
movl P,%edi // edi <- P
movl Value,%eax // eax <- Value
movl Count,%ecx // ecx <- Count
rep
stosl
popl %edi
end;
works both as embedded and non-embedded assembler procedure because the
order of assignments is ok in both cases.
Btw, there's already a method in the system unit which does the same
thing as your routine: filldword()...
... and with better instruction selection ;)
_______________________________________________
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal