Re: [fpc-pascal]SMTP and Free Pascal

2004-08-05 Thread Michael . VanCanneyt
On Thu, 5 Aug 2004, David G Jenkins wrote: > I've found a Delphi compatible DLL to handle SMTP protocol and I think I > can figure how to use this with fpc but are there any written for free > pascal? You can try to use synapse. It compiles in FPC and Delphi: http://www.ararat.cz/synapse/ Mi

Re: [fpc-pascal]Var parameter passing to asm procedure

2004-08-05 Thread Nelson M. Sicuro
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]'. Regards, Nelson The asm block c

Re: [fpc-pascal]SMTP and Free Pascal

2004-08-05 Thread Marco van de Voort
> I've found a Delphi compatible DLL to handle SMTP protocol and I think I > can figure how to use this with fpc but are there any written for free > pascal? I don't get the exact question? Is the DLL in Delphi, does a Delphi interface to the DLL exist, or do you search something similar as the

Re: [fpc-pascal]Var parameter passing to asm procedure

2004-08-05 Thread Marco van de Voort
> 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 wr

[fpc-pascal]SMTP and Free Pascal

2004-08-05 Thread David G Jenkins
I've found a Delphi compatible DLL to handle SMTP protocol and I think I can figure how to use this with fpc but are there any written for free pascal? ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pasca

Re: [fpc-pascal]Running 32bit on 64bit suse [solved]

2004-08-05 Thread rkimber
On Wed, 4 Aug 2004 23:28:09 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: > > I tried running the 32bit fpc on my opteron suse 9.1 64bit, which > > should be possible, but I get linking problems: > Use > fpc -FD/path/to/32bitbinutils It turns out that the suse linker does both 3

Re: [fpc-pascal]Var parameter passing to asm procedure

2004-08-05 Thread Nelson M. Sicuro
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... Hi, I have a pro

[fpc-pascal]Var parameter passing to asm procedure

2004-08-05 Thread Ivan Stamenkovic
Hi, I have a problem when trying to pass some variable parameters to a procedure writen using integrated assembler. I have reduced the problem to the following code: program IncrementDemo; {$R+} {$asmmode intel} var a: dword; procedure increment(var x: dword); assembler; asm push ds