Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.