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.

How do I set/use breakpoints and watchpoints?

breakpoints
0
Posted

How do I set/use breakpoints and watchpoints?

0

To set a breakpoint, enter ” ` P”, then ” ` L”, then enter the address of your program that you wish to lock. This works like a breakpoint: when CUSP reaches that command, it will stop and wait for your input. So if you loaded your program starting at $000, and you want to be able to step after the 6th command, enter “$005″ as your breakpoint. To set a watchpoint, enter ” ` P”, then ” ` P”, then enter the address of your program that you wish to protect. This will write-protect your variables, stopping the program when it tries to write to that address. So if you want to see what gets stored at memory address $105, enter “$105” on the prompt, and it will stop when the program tries to write to $105. Once the program is suspended, you can push “C” to just keep going, or push “N” to go to the next instruction, and step through your code.

Related Questions

What is your question?

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

Experts123