mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
Comment "REX.I" should have been "REX.X"
This commit is contained in:
@@ -1712,11 +1712,11 @@ static ea *process_ea(operand * input, ea * output, int addrbits,
|
|||||||
|| (s != 1 && s != 2 && s != 4 && s != 8 && it != -1))
|
|| (s != 1 && s != 2 && s != 4 && s != 8 && it != -1))
|
||||||
return NULL; /* wrong, for various reasons */
|
return NULL; /* wrong, for various reasons */
|
||||||
|
|
||||||
if (i >= 0400 && i < 0500) { /* Calculate REX.I */
|
if (i >= 0400 && i < 0500) { /* Calculate REX.X */
|
||||||
if (i < 0410 || (i >= 0440 && i < 0450))
|
if (i < 0410 || (i >= 0440 && i < 0450))
|
||||||
output->rex |= 0xF0; /* Set REX.0 */
|
output->rex |= 0xF0; /* Set REX.0 */
|
||||||
else
|
else
|
||||||
output->rex |= 0xF2; /* Set REX.I */
|
output->rex |= 0xF2; /* Set REX.X */
|
||||||
if (i >= 0440)
|
if (i >= 0440)
|
||||||
output->rex |= 0xF8; /* Set REX.W */
|
output->rex |= 0xF8; /* Set REX.W */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user