Rules | Recent posts | topic RSS | Search | Register  | Log in

32 bit registers of PC proccesors

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Author Message
bunalmis



Joined: 03 Jan 2003
Posts: 251
Helped: 4
Location: Turkey


Post27 Dec 2004 13:02   32 bit registers of PC proccesors

16 Bit AX register has two 8 bit parts. These are AH and AL.

AX is low 16 bit part of 32 Bit EAX register.

What is high 16 bit parts of EAX name ?

High 16 bit part of EAX can be break to two parts again same as AH,AL?
Back to top
grv2k4



Joined: 25 Dec 2004
Posts: 5


Post27 Dec 2004 19:53   Re: 32 bit registers of PC proccesors

I don't think u can separate and use the higher bits of the EAX. i have had this problem b4, so i just ANDed the register contents by XXXX0000,(where XXXX is the bit-contents that u want preserved) so that the lower 16 bits would be reset, and the higher 16 bits would be whatever item u wanted.
give it a try.
Back to top
cyb72



Joined: 30 Dec 2004
Posts: 4


Post30 Dec 2004 17:44   32 bit registers of PC proccesors

No name, because pentium not support direct code to the high word of eax...edx, eg.
mov ax, 77ff -> mov ah, 77 / mov al, ff
but
mov eax, 7777ffff -> mov eah, 7777(not exist) / mov ax, ffff
the mov eah,7777 not supported by CPU
If you want to use it, you must shift it to low first.
shr eax, 16
mov [...], ax
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap