Skip to contentSkip to conversation

'as' mnemonics

DISCUSSION john d gray 2 participants 2 messages Oct 30, 2006

lore
Share & tools
lore
#0 lore raw

To: [email protected]
From: john david gray <[email protected]>

Hello ,
I am working on a Pascal compiler. I have already changed the
source code from Pascal to C { and this now works both in amigados, and in linux } where it produces 68000 assembler code { a68k } . { a68k uses at&t 's left to right assembler : mov.l $567,reg }

I am currently working on a version to produce {linux} x86
output.
I have written a small library of routines { fgets fputs etc.} in
{linux} x86 'as' code , and have the first 80% of the compiler complete.

Now need some more information please as I need to convert
{ for example } 68000's seq sne exg etc to x86 'as' code.
Can you recommend somewhere I can download info on
gcc's 'as' mnemonics please ?

Thanks
John Gray (8^)>

#1 lore raw

First, go to Intel's website and download their manuals. The main one you want is "Intel Architecture Software Developer's Manual, Volume 2:
Instruction Set Reference."

Then you can use Linux's "info as" to learn the at&t differences. Go to Machine Dependencies->i386-Dependent. This will probably provide all the information (plus a lot more) that you need.

Bob Plantz

Quoted 22 lines · john d gray

To: [email protected]
From: john david gray <[email protected]>

Hello ,
I am working on a Pascal compiler. I have already changed the
source code from Pascal to C { and this now works both in amigados, and in linux } where it produces 68000 assembler code { a68k } . { a68k uses at&t 's left to right assembler : mov.l $567,reg }

I am currently working on a version to produce {linux} x86
output.
I have written a small library of routines { fgets fputs etc.} in
{linux} x86 'as' code , and have the first 80% of the compiler complete.

Now need some more information please as I need to convert
{ for example } 68000's seq sne exg etc to x86 'as' code.
Can you recommend somewhere I can download info on
gcc's 'as' mnemonics please ?

Thanks
John Gray (8^)>