When I use the mini_os subroutines, I get stuck in an endless loop when the program takes in user input! How do I step through the program and not get stuck in the mini_os code?

0
Posted

When I use the mini_os subroutines, I get stuck in an endless loop when the program takes in user input! How do I step through the program and not get stuck in the mini_os code?

0

Start your program using “`B”, setting the PC to wherever the useful instructions begin. When it prompts you for an input, push “ESC” once to interrupt the program and go to the program execution menu. Find the address of the instruction that comes immediately after the I/O command (JSR $E00 or $E01), then push L, and enter the address you recorded in the window that pops up. Push C, enter your value, and the program will stop after it gets the value, allowing you to step through the program at will.

Related Questions