On 26-04-08 14:41, Rene Herman wrote:
For some data referencing instructions (notably those that address through esp or ebp) not ds but ss is the implicitly used segment selector, es is used as the implicit destination for the stos and movs string instructions and cs is the implicit segment selector for code references such as jmp targets. You can override the implicit segment selectors by explicit segment override prefix bytes to the instructions.
Rereading I see that in the effort to be complete this got a bit potentially confusing with respect to cs. Note that cs can NOT be overridden for actual instruction fetches and when you do something like "jmp [ptr]", it's a data reference and uses ds by default as usual.
Rene. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ