4 ms·
Yes, I think so because branches skip full instructions and instructions may be between 1 and 3 bytes but exactly how many is unknown until the skipped instruct
by dkersten 15y ago
Yes, I think so because branches skip full instructions and instructions may be between 1 and 3 bytes but exactly how many is unknown until the skipped instruction is decoded.
- MarkSweep 15y agoThe PC needs to be incremented past the "next words". But it seems odd that a un-executed push instruction would still modify SP.
- ashleyf 15y agoI believe you're right @MarkSweep. Thanks much for pointing that out! Fixed.
- dkersten 15y agoThis is true - I actually miss-read your comment and thought you said instruction pointer instead of stack pointer... It seems to be a bug in the implementation (from my reading of the spec, this should not happen).