Re: 3 operands -- What order for AT&T syntax?
- From: "Evenbit" <nbaker2328@xxxxxxxxxxx>
- Date: 28 Jul 2005 06:31:30 -0700
bwaichu@xxxxxxxxx wrote:
> I have a three operand IMUL. How do I order these in AT&T syntax?
>
> Is it:
>
> IMUL operand 3, operand 2, operand 1
>
> ?
Now remember, this is ASSEMBLY -- we like to start our counting at
zero. Like so:
IMUL operand 2, operand 1, operand 0
But this reveals that you REALLY only have 2 operands {we've just
counted them}. Since this fact won't be easily understood by others,
we have to borrow some 'fancy footwork' from academia to do a little
deception to cover our tracks [notice that this also allows counting
from left to right, which also might be easier on the others]:
N equ 3
IMUL operand N-0, operand N-1, operand N-2
Nathan.
.
- References:
- 3 operands -- What order for AT&T syntax?
- From: bwaichu@xxxxxxxxx
- 3 operands -- What order for AT&T syntax?
- Prev by Date: Re: When will Betov come clean on GPL ?
- Next by Date: Re: count2.asm
- Previous by thread: Re: 3 operands -- What order for AT&T syntax?
- Next by thread: Re: 3 operands -- What order for AT&T syntax?
- Index(es):