[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Intel Assembly error



On Fri, 18 Aug 2000, Joseph Carter wrote:

> I do not know if there is a way to access the rest of EAX when accessing
> AX, AL, etc.  Not sure how endianness applies to EAX offhand (I've been up
> a whole 10 minutes) but given 0x12345678 in EAX, AX may contain 0x5678
> which is where the confusion comes from.  

It is this way. AX ist the low part of EAX (Since eax and ax shall
make the same for values less then 2^16.) And there is no direct way to
address to higher 16 Bits. But as a shr eax,16 need only one cycle it is
not that serious.

Hochachtungsvoll,
  Bernhard R. Link



Reply to: