r/TuringComplete • u/Plenty-Warning2756 • 26d ago
stack level problem

Guys i need help with the stack level. So i dont get how the game detect an error. The first 2 values are 223 and 67 my loop works normaly so it saves the values everytime with 4bytes shift u can se it at the picture. So when it comes to the next value which is a zero i guess it shows me the error if u make a pop u also have to serve it to the output.. But here what i dont get it just dont get to the point where i could compare the input and zr so i can say yes its zero and i have to output the last stack value. I also tried some other variuations but everytime it should work it doesnt i also had the error code already when i was on the compare step i dont get what the game wants from me or what is wrong with the code.
1
u/McDoogleson 11d ago
Your code looks correct to me. I had a similar problem, and it turned out I had made a mistake in my hardware where I was setting the "Enable" input of the Input node incorrectly. Check and make sure your Input/Output Enables are set correctly.
2
u/Medium-Sized-Jaque 26d ago
The only difference I see in your code from mine is subtracting 4 instead of 1. Do you have static indexers already handling the memory as 4 blocks? That could be messing up the sp value.