Re: Only RAM comparison failure between NestedCall.out and NestedCall.cmp
We are not going to debug your code for you.
You can see that the problem is that RAM is not what it is supposed to be.
The first step is to make sure that you agree that it should be 246 and why.
Then work through your code to see if you can determine either why it is making 5041 or why it is not making it 246 (those are somewhat different objectives).
The place to start is NOT with the assembly code listing, but at the VM code level. Determine which statements should be affecting RAM and which ones should not.
Then look at the assembly code that implement those statements.
Do yourself a HUGE favor and have your VM Translator output comments to the ASM file. At the very least, but a comment containing the VM command that is about to be translated followed by the block of ASM code that implements that command.