I just finished my VMTranslator from Chapters 7 and 8. There is one minor problem with it though and I don't know if its a bug in my implementation or in the test scripts.
My understanding is that the bootstrap code should set the SP to 256. However, both the FibonacciElement and StaticsTest fail with the SP initialized to 256. They both pass however if I move the SP to 261 in the bootstrap code.
The book claims both of these programs expect you to write the bootstrap so I don't know why the test scripts would assume 261.
Am I missing something? Is this part of the test? Should I be detecting this and setting the SP dynamically rather than hard coding 256 in the bootstrap?