SHENZHEN I/O

SHENZHEN I/O

View Stats:
Gets stuck on "slp 1" instruction
Hello,
I've been working on the "Pocket I Ching Oracle" assignment, and I got a tough one here, when the program hits a "slp 1" instruction, but doesn't move on from that point. The test actually goes through several iterations successfully, but then gets stuck.

Here is a screenshot. Please let me know if you see anything. Thanks,
-Scott

https://steamcommunity.com/sharedfiles/filedetails/?id=2511349636
< >
Showing 1-3 of 3 comments
Reaper Jun 8, 2021 @ 3:02pm 
The program's ending on "slp 1" just because that's the point the test is ending with the wrong answer.
You're on the right track using "dst", I made your solution work with some minor adjustments - using a DX300 to make the "oracle" input produce 1s and 0s instead of 100s and encoding the "dst" values from it (no need to test it first).
Also both top and bottom outputs to the screen have to be made at the same time so save the "x2" out to acc then output it and "x3" when you have it.

Hope this makes some sense, good luck,
valenti_scott Jun 8, 2021 @ 3:11pm 
Funny, but it just occurred to me (prior to reading your response), that the test may have failed, and that is what caused it to stop on the right-edge of the test data. It just happened to be at that slp instruction. I hadn't noticed the test failure.

I'll take a look at your ideas as they apply to the oracle assignment. Right now I'm working on the next one (Precision Food Scale). Love the Space Invaders avatar! Thanks!!
valenti_scott Jun 9, 2021 @ 12:28pm 
Yeah, thanks for the pointers. I have debugged the program now and got it working. Pretty good stats too!
< >
Showing 1-3 of 3 comments
Per page: 1530 50