Home > Archive > A86 Assembler > August 2004 > Re: Like their is no high word for eax.?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Like their is no high word for eax.?
|
|
| hutch-- 2004-08-29, 8:55 am |
| Yes there is but there is a trick to it, if its in a 32 bit register
you use ROL 16 or ROR 16 to put it into AX.
If the high word you want is in a memory operand, just treat the 4
bytes like an index and read the value into AX.
Regards,
hutch at movsd dot com
| |
| blackgold 2004-08-31, 8:55 pm |
| spamtrap@crayne.org (hutch--) wrote in message news:<af910ce4.0408290244.27c2b539@posting.google.com>...
> Yes there is but there is a trick to it, if its in a 32 bit register
> you use ROL 16 or ROR 16 to put it into AX.
>
> If the high word you want is in a memory operand, just treat the 4
> bytes like an index and read the value into AX.
>
> Regards,
>
> hutch at movsd dot com
Ah thanks for your help guys!
I understand it alot better now.
Thank you all who replied.
Cya
|
|
|
|
|