flat assembler
Message board for the users of flat assembler.
Index
> Main > Pentium ALU doesn't like ESP :) |
Author |
|
revolution 29 Mar 2008, 02:59
Yes, ESP cannot be used as an index register. It doesn't make sense to use your stack pointer as an index offest anyway so why do you want it?
|
|||
29 Mar 2008, 02:59 |
|
Xorpd! 30 Mar 2008, 23:47
Yes, the SIB byte encodings that would otherwise index ESP, xx100xxx, instead mean 'no index'. You can encode R12 as an index, however because the processor combines the REX byte with the SIB byte to determine the index register. Encoding of R13 as a base is somewhat awkward because of what happens to its little brother RBP. As a consequence of their exceptional encodings, I simply avoid using RSP, RBP, R12, and R13 for addressing.
|
|||
30 Mar 2008, 23:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.