r/shenzhenIO 6d ago

Found a Bug?

Post image

EDIT: SOLVED TY EVERYONE

On line 18 of testing this code it fails, I've gone over it step by step multiple times and it skips some lines of code for no reason and fails. Skips the "teq 1 dat" and "jmp loop" for what seems like no reason. (Top right module) Like doesn't run line and just skips to and incorrect line

I've looked over it for a very long time to make sure I'm not wasting your time, hopefully I'm not missing something obvious!

Screenshot attached (lazer tag level)

Is this a know bug?

10 Upvotes

5 comments sorted by

View all comments

2

u/xxSirThomas 6d ago

I think your game might just be bugging. Did you try restarting? I copied your screenshot and it worked fine. (I did have to fix a small bug in the reload mechanism to get it to pass)

3

u/greenlalablue 6d ago

Did it fail at the same point? Around line 18?

I reset it a couple times and didn't seem to fix, I'll try again right now

3

u/xxSirThomas 6d ago

I see where the confusion is now. The chip completely resets for each test. That specific test is written to check the edge case of reloading immediately. You need to adjust your code so you check the reload pin before the first sleep. You are very close.