Original Post
I've been programming for 20+ years and quite a lot of x86 asm (albeit not that much for the last 5 years). Now I'm at it again and wrote something like this: mov DWORD PTR 0x12345678, ecx Hoping to write the content of the eax register to the address 0x12345678. I was very surprised that the code compiled into B8 00 00 00 00 which is equal to: mov eax, 0 I was dead certain that you could write to absoulte addresses on the x86. Could someone please confirm that it's impossible to write to an address directly like the above? Edit: I realize that there are plenty of ways to write to an address, just no way of doing it without using one register..or? [Edited by - eq on September 10, 2006 6:40:34 AM]