It's Intel syntax, not IBM.Quote:>Someone told me that “movw” and “%” is AT&T
>asm syntax.
>My question is why they use AT&T asm syntax but not IBM asm syntax in
>the arc/i386/boot/bootsct.s
>Thanks in advance!
GNU tools are for unix. gcc produces AT&T syntax for all it's target
machines, because UNIX was from AT&T. The only one that's not the norm for
is x86. Intel syntax is better for address modes, but
OP dest, source
is just wrong to me. Of course, I speak a left-to-right language, but so
did the designers of the x86. Plan 9 has a nice compromise; Intelr-like
address mode notation with
OP source, dest
Rick Hohensee
www.clienux.com
-Andi
> Someone told me that “movw” and “%” is AT&T
> asm syntax.
> My question is why they use AT&T asm syntax but not IBM asm syntax in
> the arc/i386/boot/bootsct.s
> Thanks in advance!
--
Kasper Dupont
Ever take math in school. The destination on the left is a more like mathQuote:> OP dest, source
> is just wrong to me. Of course, I speak a left-to-right language, but so
> did the designers of the x86.
--
Norman Black
Stony Brook Software
the reply, fubar => ix.netcom
> It's Intel syntax, not IBM.
> GNU tools are for unix. gcc produces AT&T syntax for all it's target
> machines, because UNIX was from AT&T. The only one that's not the norm for
> is x86. Intel syntax is better for address modes, but
> OP dest, source
> is just wrong to me. Of course, I speak a left-to-right language, but so
> did the designers of the x86. Plan 9 has a nice compromise; Intelr-like
> address mode notation with
> OP source, dest
> Rick Hohensee
> www.clienux.com
Also most high level languages have the destination on the left, in typicalQuote:> OP dest, source
> is just wrong to me. Of course, I speak a left-to-right language, but so
> did the designers of the x86.
--
Norman Black
Stony Brook Software
the reply, fubar => ix.netcom
> It's Intel syntax, not IBM.
> GNU tools are for unix. gcc produces AT&T syntax for all it's target
> machines, because UNIX was from AT&T. The only one that's not the norm for
> is x86. Intel syntax is better for address modes, but
> OP dest, source
> is just wrong to me. Of course, I speak a left-to-right language, but so
> did the designers of the x86. Plan 9 has a nice compromise; Intelr-like
> address mode notation with
> OP source, dest
> Rick Hohensee
> www.clienux.com
Yeah. I think VHDL is assign to the right. You're probably right aboutQuote:>> OP dest, source
>> is just wrong to me. Of course, I speak a left-to-right language, but so
>> did the designers of the x86.
>Also most high level languages have the destination on the left, in typical
>math notation.
Rick Hohensee
www.clienux.com
even later stuff
end
>--
>Norman Black
>Stony Brook Software
>the reply, fubar => ix.netcom
>> >Someone told me that “movw” and “%” is AT&T
>> >asm syntax.
>> >My question is why they use AT&T asm syntax but not IBM asm syntax in
>> >the arc/i386/boot/bootsct.s
>> >Thanks in advance!
>> It's Intel syntax, not IBM.
>> GNU tools are for unix. gcc produces AT&T syntax for all it's target
>> machines, because UNIX was from AT&T. The only one that's not the norm for
>> is x86. Intel syntax is better for address modes, but
>> OP dest, source
>> is just wrong to me. Of course, I speak a left-to-right language, but so
>> did the designers of the x86. Plan 9 has a nice compromise; Intelr-like
>> address mode notation with
>> OP source, dest
>> Rick Hohensee
>> www.clienux.com
Then again, when you say "move" you would normaly name the source itemQuote:>> OP dest, source
>> is just wrong to me. Of course, I speak a left-to-right language, but so
>> did the designers of the x86.
>Ever take math in school. The destination on the left is a more like math
>notation. That would be my guess as to why the destination is on the left.
More likely, though, is that the 386 assembler and compiler was ported
from another architechture that already used the source-destination
ordering, susch as for example the Motorola 68k.
Villy
1. AT&T asm syntax description ?
Hello,
where can I find AT&T asm syntax description ?
Regards!
2. hole in file
3. Fix asm-alpha/topology.h & asm-ppc64/topology.h
4. debug Q
6. Mount of AIX jfs2 filesystem on Linux server extremely slow
8. Memory Faults : Preventing by testing pointer before use?
9. inline Asm syntax question.
10. inline assembler error - porting Intel syntax to AT&T syntax
11. intel Syntax -> AT&T Syntax
12. WISHFUL SEARCH: Intel Asm -> GNU Asm format converter
13. GCC gas x86 asm -> Intel X86 asm ?