Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 247 Vote(s) - 3.69 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Are EDX and DX the same register?

#1
Sorry for the ignorant question, but I'm rather confused about x86.

Is EDX essentially the same register as DX?
I understand EDX is 32 bit while DX is 16 bit.

If I move 0x1 to EDX would 0x1 also be in DX?
Reply

#2
Also, if you're on a 64 bit system, EDX is the low 32 bit of the RDX register, which is a 64 bit register.
Reply

#3
You could think of it as pointers:

long theRealRDX;
long * rdx = &theRealRDX;
int * edx = (int*)&theRealRDX;
short int * dx = (short int*)&theRealRDX;
char * dl = (char*)&theRealRDX;

except for high part erasure mentioned in nrz comment
Reply

#4
[76543210 76543210 76543210 76543210 76543210 76543210 76543210 76543210] bits
[ RDX ]
[ EDX ]
[ DX ]
[ DH ][ DL ]

Reply

#5
DX is simply the lower 16b of EDX :)

mov EDX, 0x1; --> DX = 0x1
mov EDX, 0x12345678; --> DX = 0x5678
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through