Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: default switch generates intel asm, ironic ? Can free pascal reverse engineer executables and dll's ?

2007-07-26 Thread Michael Van Canneyt
On Thu, 26 Jul 2007, Graeme Geldenhuys wrote: > [... not really Free Pascal related...] > > Seeing that it sounds like you enjoy assembly language. Maybe you > would like the following assembly framework created by Gibson Research > Corporation. > > Homepage with loads of utility apps for Wind

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: default switch generatesintel asm, ironic ? Can free pascal reverse engineer executables and dll's ?

2007-07-26 Thread Krishna
On 7/26/07, Skybuck Flying <[EMAIL PROTECTED]> wrote: Maybe I do enjoy it, however the small is beautifull kit is for 32 bit windows programming. I really want 64 bit windows programming. Maybe this can help: http://www.jorgon.freeserve.co.uk/ YASM is another option. Cheers, -Krishna -- Your

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?

2007-07-26 Thread Jonas Maebe
On 26 Jul 2007, at 11:50, Michael Van Canneyt wrote: The mode statement only applies to pascal syntax, never to assembler. On i386, {$mode delphi} switches the default assembler reader mode from AT&T to Intel style. Jonas ___ fpc-pascal maillis

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: default switch generatesintel asm, ironic ? Can free pascal reverse engineer executables and dll's ?

2007-07-26 Thread Skybuck Flying
Maybe I do enjoy it, however the small is beautifull kit is for 32 bit windows programming. I really want 64 bit windows programming. So I guess it's not for me ;) Bye, Skybuck. - Original Message - From: "Graeme Geldenhuys" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" S

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: default switch generates intel asm, ironic ? Can free pascal reverse engineer executables and dll's ?

2007-07-26 Thread Graeme Geldenhuys
[... not really Free Pascal related...] Seeing that it sounds like you enjoy assembly language. Maybe you would like the following assembly framework created by Gibson Research Corporation. Homepage with loads of utility apps for Windows. http://www.grc.com/default.htm Most popular freeware on

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: default switch generates intel asm, ironic ? Can free pascal reverse engineer executables and dll's ?

2007-07-26 Thread Skybuck Flying
Hello, I like free pascal compiler to generate an assembler listing of HelloWorld.pas and fortunately it can do that which is really cool ! I simply type: ppcrossx64 HelloWorld.pas -default It then generates a HelloWorld.S file: Here is a snipper from it ;) ; Begin asmlist al_procedures

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Test := 9223372036854775807; and writeln does work... asm stuff does not work.

2007-07-26 Thread Skybuck Flying
Hello, I found this link explaining some difference between AT&T and intel asm syntax: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-assembler/i386-syntax.html So I tried to add q behind mov maybe that was the problem... Kinda strange that mov is allowed to compile. Anyway

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Problem with int64 ? or Problem with Large Decimal values in asm ?

2007-07-26 Thread Skybuck Flying
Hello, This is my first attempt at writing AT&T asm code and also 64 bit asm code: The output is supposed to be 2^64 - 1 but it displays 2^32-1. Did I program a bug ? Or is the compiler bugged ? Maybe writeln bugged ? What's wrong ? // *** Begin of Code *** program HelloWorld; {$mode delp

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?

2007-07-26 Thread Skybuck Flying
- Original Message - From: "Michael Van Canneyt" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Thursday, July 26, 2007 11:50 AM Subject: Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ? On Thu, 26 Jul 2007, Skybuck Flying wrote: Ok, I just rein

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?

2007-07-26 Thread Marco van de Voort
> On 26 Jul 2007, at 10:44, Skybuck Flying wrote: > > stopping > > Fatal: Compilation aborted > > I guess the Intel assembler syntax is simply not supported for > x86-64. You will have to use AT&T syntax instead. Here are some > google links to tutorials and overview documents: > http://www.go

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?

2007-07-26 Thread Jonas Maebe
On 26 Jul 2007, at 10:44, Skybuck Flying wrote: I just reinstalled fpc-2.1.4.x86_64-win64.exe: And this time I used the -Mdelphi compiler switch but it still gives problems: Y:\Free Pascal\Tests\Hello World>ppcrossx64 HelloWorld.pas -Mdelphi HelloWorld.pas(9,10) Error: Unknown identifier "

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?

2007-07-26 Thread Michael Van Canneyt
On Thu, 26 Jul 2007, Skybuck Flying wrote: > Ok, > > I just reinstalled fpc-2.1.4.x86_64-win64.exe: > > And this time I used the -Mdelphi compiler switch but it still gives problems: > > Y:\Free Pascal\Tests\Hello World>ppcrossx64 HelloWorld.pas -Mdelphi > HelloWorld.pas(9,10) Error: Unknown

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?

2007-07-26 Thread Skybuck Flying
Ok, I just reinstalled fpc-2.1.4.x86_64-win64.exe: And this time I used the -Mdelphi compiler switch but it still gives problems: Y:\Free Pascal\Tests\Hello World>ppcrossx64 HelloWorld.pas -Mdelphi HelloWorld.pas(9,10) Error: Unknown identifier "EAX" HelloWorld.pas(9,12) Error: Unknown identi

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Hello World program withASM, compilation aborted ? Error: Unknown identifier "EAX" ???

2007-07-26 Thread Skybuck Flying
Yes, but the default syntax is AT&T, not Intel. I assume you are coming from a Delphi background, so you can probably best solve this and many future issues you would otherwise encounter by adding {$mode delphi} at the top of all of your source files (or compile with - Mdelphi). Jonas

Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Hello World program with ASM, compilation aborted ? Error: Unknown identifier "EAX" ???

2007-07-26 Thread Jonas Maebe
On 26 Jul 2007, at 09:02, Skybuck Flying wrote: Y:\Free Pascal\Tests\Hello World>ppcrossx64 HelloWorld HelloWorld.pas(7,10) Error: Unknown identifier "EAX" HelloWorld.pas(7,12) Error: Unknown identifier "ECX" HelloWorld.pas(7,12) Error: Asm: [mov ???,???] invalid combination of opcode and op

[fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Hello World program with ASM, compilation aborted ? Error: Unknown identifier "EAX" ???

2007-07-26 Thread Skybuck Flying
Hello, I downloaded and installed: fpc-2.1.4.x86_64-win64.exe (beta) I wrote a little Hello World program to test the compiler: var test : int64; begin writeln('Hello Free Pascal World !'); asm mov eax, ecx end; writeln('Test: ', test ); readln; end. I get these errors: Y:\Free Pascal\T