In a nutshell, both you and the debugger are correct.
When you move something to RAX
, this affects RAX
, EAX
, AX
, AL
and AH
as they refer to various subsets of the same 64 bits:
AL
is the lower 8 bits ofAX
(AH
is the upper 8 bits).AX
is the lower 16 bits ofEAX
.EAX
is the lower 32 bits ofRAX
.