[fpc-pascal] Porting TP ASM to FPC ASM
Michael Preslar
mike at lordlegacy.com
Mon Aug 21 19:26:33 CEST 2006
Hope this is the right place to post..
I'm trying to convert some old Turbo Pascal asm to win32 fpc asm and
dont know where to start..
I'm compiling with -Sd and -Twin32 and {$asmmode intel}..
An example of what I'm trying to port:
procedure ClearFlag(var Flags: word; FlagMask: word); assembler;
asm
pop ax
pop di
pop es
not ax
and es:[di], ax
end;
If I change ax to eax, di to edi and es:[di] to [di], the code compiles
without warnings or errors, but I don't know if that's the right thing
to do.
Any pointers, howtos, wiki pages, or whatever else that anyone could
offer to point me in the right direction would be greatly appreciated..
--
Michael
More information about the fpc-pascal
mailing list