.data
onebyte BYTE 78h
oneWord WORD 1234h
oneDword DWORD 1234 5678h
.code
mov eax, 0 ; EAX = 0000 0000h
mov al, oneWord ; EAX = 0000 00078h
mov ax, oneWorod ; EAX = 0000 1234h
mov eax, oneDword ; EAX = 1234 5678h
mov ax, 0 ; EAX = 1234 0000h
Here on the last instruction as it is shown in the example, the register value changes as follows "1234 0000" because the right part of 32-bit Register is called AX(16bit AH(8bit) AL(8bit)) and that's why the 0 replaced the last 2-bytes of the register. What if I wanted to change the first (high) 2-byte word of the register value ("1234") instead of the AX part (like this EAX = 0000 5678h)...
I'm new maybe I've skipped some part or forgot but the first half also should have a register name like AX or something right? Because as far as I remember the book hasn't (as of chapter 4) explained the first half of the register name yet...
Here are the screenshots of register explanation by the book so far.
Also what are the other half of the registers name if you see the pic AX for the right part of the register what about the left part of the register?