JohnEarnest/Octo

Step function can proceed past Fx0A without input

Hambones82 opened this issue · 2 comments

In the 5-quirks.ch8 rom from Timendus, there is a wait for keyboard input instruction after presenting the results of the test. If you step through it by pressing i and then pressing o, Octo will proceed past that instruction even without keypad input. I assume this is not intended behavior, as execution remains halted even when you press i to resume execution.

I'm going to need a more detailed reproduction case.

Does this only occur when stepping in the debugger?

I'm going to need a more detailed reproduction case.

Does this only occur when stepping in the debugger?

I only noticed this issue when stepping in the debugger. Specifically, if I run 5-quirks.ch8, select one of the tests and wait until completion of the test, an f00a instruction is encountered. The system is thus waiting for keyboard input. If I then hit 'i' to enter step mode, and then subsequently hit 'o' to step, the emulator will step past the instruction though no keypad input was received. In fact, the emulator will remain stalled as though it were still waiting for keypad input even once it steps past the f00a instruction even if I hit 'i' again to leave step mode.

https://youtu.be/ezUEVFIbrlE

Here is a video of this happening.