liangke wrote
hi:
I'm confused in push/pop constent x.
example: push constent 2
it mean what ?
push 2 to where?
pop constent 2 .
it operate 2 to where?
VM push commands all push something onto the stack; the parameters say what to push. In the case of push constant 2, the value 2 is pushed onto the stack.
VM command pop constant 2 is not allowed. That would be like trying to write "let 2 = x".
--Mark