Registers 32 and 64 bits

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
AlexS
Expert Cheater
Expert Cheater
Posts: 307
Joined: Sun Apr 08, 2018 3:46 pm
Reputation: 184

Registers 32 and 64 bits

Post by AlexS »

(Google translate)

Can you please explain why on a 64-bit system a write to a 32-bit register completely clears the 64-bit register and not just the lower 32-bit part? While writing to a 16-bit or 8-bit register does not clear the 64-bit register.

For example
RAX = FFFFFFFFFFFFFF
mov al,11 ---> RAX = FFFFFFFFFFFFFF11
mov ax,1111 ---> RAX = FFFFFFFFFFFF1111
mov eax,11111111 ---> RAX = 0000000011111111 - ?

Paul44
Table Makers
Table Makers
Posts: 736
Joined: Thu Jul 27, 2017 9:02 am
Reputation: 425

Re: Registers 32 and 64 bits

Post by Paul44 »

^ see here: [ [Link] ]
(stackoverflow is my preferred source for this kind of info btw)

Post Reply

Who is online

Users browsing this forum: No registered users