hmm, ill have to look into this when I get home tonight.
i think you're right. i mistakenly did y-x instead of x-y
I wasn't able to pass the stacktest.vm program when I translated it with my translator. And troubleshooting led me to the 'sub' vm instruction.
There is a section in the stacktest sample program where you have:
push constant 31
push constant 53
add
push constant 112
sub
You can see that you have...
31+53 = 84
then
84-112 = -28
in the cpu emulator I got +28 causing script comparison to fail.