Log in

View Full Version : Curious question about reg storage addresses


Coersum
July 31st, 2002, 22:51
ok,

I was wondering, ok data, progs etcc are stored at memory addresses, but what about the registers.

When we do a mov eax, 00000010 it changes eac to 10, but where is eax stored at ? Is it in memory somewhere or directly in the CPU ?

Why I wonder: To try some stuff on SI, I edit eax to put a diff value and the target bugs afterward..... by changing this value, did I change eax address to what it contains or the data to the address the value eax is stored at ?

Hope u follow. Might be dumb question but I was curious.
Coersum

nikolatesla20
August 1st, 2002, 00:59
EAX is a hardware register, wired hard right into the CPU, as well as all the other registers.

-nt20