Tkkemo wrote
I'm not understanding why Addr 261 is supposed to be -2 after the program completes. My program seems to be working except for that, shouldn't both get functions return 23-15=8?
Static variables for Class1.vm and Class2.vm are not the same. "static 0" in Class1 refers to a different RAM location than "static 0" in Class2.
Sys.init() sets Class1's static variables to 6 and 8 and sets Class2's static variables to 23 and 15. Then it gets the difference in Class1's variables (6 - 8) and the difference in Class2's variables (23 - 15).
--Mark