Re: [fpc-pascal] Porting TP ASM to FPC ASM

2006-08-22 Thread Jonas Maebe
On 22 aug 2006, at 11:44, Michael Preslar wrote: 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. No. The calling conventions are different Any further information you could give? The doc

Re: [fpc-pascal] Porting TP ASM to FPC ASM

2006-08-22 Thread Michael Preslar
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}.. . 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

Re: [fpc-pascal] Porting TP ASM to FPC ASM

2006-08-21 Thread Marco van de Voort
> 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; FlagM

[fpc-pascal] Porting TP ASM to FPC ASM

2006-08-21 Thread Michael Preslar
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); assemb