The 8088 processor in the first IBM PC had a bug that gave me some grief. (The code below is likely to have bugs of its own - I wrote it from memory as an illustration of the CPU bug - and thanks to 'tlb' for catching an error in my first draft. I also left out the question of what data segment the various MOV instructions use for their memory references, as it isn't relevant to this CPU bug.) If you needed to work i…
push sp
mov sp, myPrivateSP
...
pop sp
work? Isn't it popping from the private stack, while it was pushed on the regular stack?