|
This post was updated on .
problemWe're on chapter 12, and the tests always end in "Program Halted: Main.main finished execution". When we manually look at the memory addresses, they appear to be correct. When we edit the Main.jack to give incorrect results, it still ends with program halted.
codeOur Array.jack:
(code was confirmed correct, and removed at request of replier)
directory structure We moved Array.jack into the ArrayTest dir, then compiled it to ArrayTest/Array.vm and compiled ArrayTest/Main.jack into ArrayTest/Main.vm
depending on builtinsWhen we run VMEmulator.sh, against "ArrayTest/ArrayTest.tst" it prompts us:
"Confirmation Message:
No implementation was found for some functions which are called in the VM code.
The VM Emulator provides built-in implementations for the OS functions.
If available, should this built-in implementation be used for functions which were not implemented in the VM code?"
Which we say "yes" to. Then it runs for a bit and gives the above error.
environment We're on Mac OSX 10.7.3, with the following java:
$ java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11D50b)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
|