> Once my erroneous comma is removed, you can walk a lot further. > Read John Ehrman's article, as cited earlier by Michael Stack: > > http://www.kcats.org/csci/464/ho/usingtechnique.shtml
Not really. The offset will still and always allow you to walk 0-4095 bytes forward (from the base+index location). The original problem (and the examples in the link) just introduce an index register to offset the 4096 byte window relative to the base register. In a very obfuscated manner. I don't think anybody meant to say that an index register doesn't allow you to move the 'window of addressability' anywhere you want. The linked article already said it: "The point of these examples is not to recommend a particular practice, only to show how the assembler does its work; I hope they helped". I would 'gently correct' developers that dream up a code sequences like these in our shop. Fred! ----------------------------------------------------------------- ATTENTION: The information in this electronic mail message is private and confidential, and only intended for the addressee. Should you receive this message by mistake, you are hereby notified that any disclosure, reproduction, distribution or use of this message is strictly prohibited. Please inform the sender by reply transmission and delete the message without copying or opening it. Messages and attachments are scanned for all viruses known. If this message contains password-protected attachments, the files have NOT been scanned for viruses by the ING mail domain. Always scan attachments before opening them. -----------------------------------------------------------------
