Re: how to print vm commands in correct order

Posted by kraftwerk1611 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/how-to-print-vm-commands-in-correct-order-tp4030962p4030969.html

Thanks.

When I got this reply, I had already encountered one problem you mentioned i.e f(a, g(b), c)

I have been trying to avoid global variables as much as I can.

However I am not sure how to avoid global variables  in situations like when a function a()  calls b(), then b() calls c(), and then c() calls d(). And there is suppose a subroutine symbol table that is defined in function a() and also used in function d() but functions b() and c() dont use it.