Always have a -1 in RAM[6]/ register

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

Always have a -1 in RAM[6]/ register

anker777
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.



Reply | Threaded
Open this post in threaded view
|

Re: Always have a -1 in RAM[6]/ register

WBahn
Administrator
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].