Reputation: 1107
I need to interpret/emulate the PUSH and POP family of x86 instructions.
My current question by now is:
Can PUSH and POP instructions accept segment override prefixes such that I can push or pop to ES:SP
, CS:SP
, DS:SP
, FS:SP
or GS:SP
instead of SS:SP
?
Upvotes: 1
Views: 1224
Reputation: 23767
Segment override prefix affects location of source for PUSH and location of destination for POP.
You can't override segment of stack.
Upvotes: 6