This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Synthetic register related: maximum value of a modrm byte in i386
- From: Andy Walker <ja_walker at earthlink dot net>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 4 Jan 2003 00:54:51 -0600
- Subject: Synthetic register related: maximum value of a modrm byte in i386
After much thought and reflection, and re-reading the Intel x86 Instruction
manual, I have changed my mind and decided to use the edp, or
hard-frame-register as the base register for the Synthetic regs.
Some modrm instructions on the x86 can use a single byte as the offset, and
it may be negative. In other words, the integer in the single byte is
signed.
The next, and obvious, question is how negative can it be?
I presume that B'0000 0000' represents zero.
I presume that B'0111 1111' represents 127.
I presume that B'1000 0001' represents -127.
What does B'1000 0000' represent?
-128, or +128 ?
My Fine Manual is not at all clear.
Andy