flat assembler
Message board for the users of flat assembler.

Index > Windows > byte register name of dword register name esi

Author
Thread Post new topic Reply to topic
Sandurr



Joined: 20 Oct 2007
Posts: 2
Sandurr 27 Oct 2007, 19:06
Hello,

What is the byte register name of esi?

Like dl is for edx

In OllyDbg
Post 27 Oct 2007, 19:06
View user's profile Send private message Reply with quote
Xorpd!



Joined: 21 Dec 2006
Posts: 161
Xorpd! 27 Oct 2007, 19:47
sil. That said, I thought that OllyDbg was 32-bit software and so couldn't access it directly.
Post 27 Oct 2007, 19:47
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Oct 2007, 19:50
there is no way to access it directly in 32bit code. only in 64bit code
Post 27 Oct 2007, 19:50
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 28 Oct 2007, 00:52
...and in 64bit mode, you can only access the lowest part, right? (ie, no AH/BH/CH/DH).
Post 28 Oct 2007, 00:52
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 28 Oct 2007, 01:02
yup
Post 28 Oct 2007, 01:02
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Xorpd!



Joined: 21 Dec 2006
Posts: 161
Xorpd! 28 Oct 2007, 01:30
I would say "yup" to one interpretation of f0dder's question, which is to ask whether there is no 8-bit register corresponding to bits 8:15 of RSP/RBP/RSI/RDI.

I would say "nope" to another interpretation, which is to ask whether the AH/CH/DH/BH registers are not directly addressible in 64-bit mode.

That's a lot of negatives above, so let me summarize by saying that in 64-bit mode if an instruction has a REX prefix it may address registers al/cl/dl/bl/spl/bpl/sil/dil/r8l/r9l/r10l/r11l/r12l/r13l/r14l/r15l. If an instruction has no REX prefix it may address registers al/cl/dl/bl/ah/ch/dh/bh.
Post 28 Oct 2007, 01:30
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 28 Oct 2007, 01:42
you are right, sorry.
Post 28 Oct 2007, 01:42
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 28 Oct 2007, 14:06
Thanks for the clarification Smile
Post 28 Oct 2007, 14:06
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.