On Fri, Mar 30, 2007 at 09:38:41AM -0400, A D wrote: > I know that EIP register is the instruction pointer. But how does it > know how many bytes it needs to increment to the next instruction? In order to execute the current instruction, the CPU must determine its format, which also means finding out how many bytes the command takes. Next command is at eip+sizeof(command). Of course, this only holds for subsequent execution, branching is another thing. Leslie -- NEW homepage: https://viridian.dnsalias.net/~sky/homepage/ gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
Attachment:
pgpfxCh2UIoYV.pgp
Description: PGP signature
- Follow-Ups:
- References:
- Prev by Date: Question regarding EIP instruction pointer
- Next by Date: Re: Question regarding EIP instruction pointer
- Previous by thread: Question regarding EIP instruction pointer
- Next by thread: Re: Question regarding EIP instruction pointer
- Index(es):