In x86 assembly language, is there any way to obtain the upper half of the EAX register? I know that the AX register already contains the lower hal
EAX
AX
I would do it like this:
mov ebx,eax shr ebx, 16
ebx now contains the top 16-bits of eax