ArrayTest does not pass with course compiler + OS libs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ArrayTest does not pass with course compiler + OS libs

gcpd
I think at some point the code must have been updated but I found the culprit, in ArrayTest.tst it wasn't running quite long enough to reach the end of the program at 1mil steps but bumping it to 1.25m got it over the line. Obviously if using your own compiler/libs your mileage may vary.

repeat 1250000 {
  vmstep;
}

Steps to reproduce:
- Copy tools/OS/*.vm to projects/12/ArrayTest
- Compile projects/12/ArrayTest/Main.jack with JackCompiler
- Run ArrayTest folder/script with VMEmulator

This is with the "legacy" software suite v2.7

Reply | Threaded
Open this post in threaded view
|

Re: ArrayTest does not pass with course compiler + OS libs

gcpd
Unsurprisingly this ended up being the case for all of the Project 12 tst files:

ArrayTest.tst
MathTest.tst
MemoryTest.tst
MemoryDiag.tst