alt.126
alt.126

Reputation: 1107

Overriding x86 SS segment for PUSH and POP instructions (SS:SP, SS:ESP, SS:RSP)

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

Answers (1)

Egor Skriptunoff
Egor Skriptunoff

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

Related Questions