Suupose a stack-oriented processor that haves the stack operations PUSH and POP. Arithmetic operations automatically involve the top one or two stack elements.
Starting with an empty stack, what stack elements remain after the following instructions are implemented?
Instruction
|
Stack (top number on left of stack)
|
PUSH 4
|
|
PUSH 7
|
|
PUSH 8
|
|
ADD
|
|
PUSH 10
|
|
SUB
|
|
MUL
|
|