3 ms·
I wonder what happens if you execute multiple POP SS instructions. In fact, you could set up a 64K v86 mode segment containing only copies of the POP SS instru
by hyperman1 8y ago
I wonder what happens if you execute multiple POP SS instructions. In fact, you could set up a 64K v86 mode segment containing only copies of the POP SS instruction. jmp far into it. When IP reaches the last instruction it wraps around and starts again. Will it ever be interrupted by anything? If the stack usage bothers it, just do MOV SS,AX
- Someone 8y agoIntel thought of that, but doesn’t seem to give us an answer. https://software.intel.com/sites/default/files/managed/7c/f1/253668-sdm-vol-3a.pdf https://software.intel.com/sites/default/files/managed/7c/f1..., page 6-8: ”If a sequence of consecutive instructions each loads the SS register (using MOV or POP), only the first is guaranteed to inhibit or suppress events in this way.” So, we still don’t know. For all I know, it may even depend on the exact cpu used or cpu state.
- dooglius 8y agoTested it: you get an interrupt after only skipping one instruction
- hyperman1 8y agoThanks, both dooglius and Someone. One learns something everyday.