Re: [fpc-devel] asm offset question

2008-11-10 Thread ABorka
True, but if the programs only run on PCs (Windows and Linux on Intel processors in this case) it should work. Not everyone who considers using FPC/Lazarus wants to run the compiled programs on 15 platforms. Sometimes all that is needed is 1 platform. There are some encrypting/decrypting functio

Re: [fpc-devel] asm offset question

2008-11-10 Thread Michael Schnell
IMHO, it's not a good idea to "port" ASM code to TP (as TP's purpose is platform independence). So at best you should rewrite this in Pascal. Normally with modern PCs the performance decrease is not noticeable. -Michael ___ fpc-devel maillist - fpc-

Re: [fpc-devel] asm offset question

2008-11-08 Thread ABorka
Thanks. It seems that mov al, dl as well as xor al, dl gives error too. I created a bug report http://bugs.freepascal.org/view.php?id=12595 Daniël Mantione wrote: Op Sat, 8 Nov 2008, schreef ABorka: Hi, I'm converting a Delphi program to FPC/lazarus and I did hit a snag with an asm

Re: [fpc-devel] asm offset question

2008-11-08 Thread Daniël Mantione
Op Sat, 8 Nov 2008, schreef ABorka: Hi, I'm converting a Delphi program to FPC/lazarus and I did hit a snag with an asm code part (win32, latest fpc and lazarus svn trunk is used). I know it is probably simple to fix, but I cannot seem to be able to figure it out: function something(s :St

[fpc-devel] asm offset question

2008-11-08 Thread ABorka
Hi, I'm converting a Delphi program to FPC/lazarus and I did hit a snag with an asm code part (win32, latest fpc and lazarus svn trunk is used). I know it is probably simple to fix, but I cannot seem to be able to figure it out: function something(s :String; i: Integer):String; var tmp:Array[