I am starting to program my compiler... but I am trying to test some chunks of jack programs to check if my compiler is working fine... but I am stuck with this, and sorry if this is a silly question [newbie here]...
I am compiling the following program:
class Main {
field int x, y;
static int pointCount;
function void main() {
var int dx, dy;
let dy = 5;
return;
}
}
it is an one-line only program,,, and the VM emulator doesn't like my VM code that my compiler generated,,, as you can see in the image:
There is an error on line 3: pop local 1... I don't know what it's wrong