Been working on Project 8 for a while and stuck on passing SimpleFunction and NestedCall. My answer is very close to both but for some reason, it keeps putting a -1 in my RAM[6] register. For Nested call the correct output is | RAM[0] | RAM[1] | RAM[2] | RAM[3] | RAM[4] | RAM[5] | RAM[6] |
| 261 | 261 | 256 | 4000 | 5000 | 135 | 246 |
While running the .tst I can see 135 in RAM[5] but then 246 gets put in RAM[5] and RAM[6] gets a -1.
Since the value that should be being put into RAM[6] is getting put into RAM[5], overwriting the correct value that had previously been placed there, I would first focus on why that value is being put into RAM[5].