You could use:
- System call ("sc" mnemonic). Usually used for calls into OS kernels
- Unconditional trap instructions. Usually used for software breakpoints
- Program interrupt. i.e. an illegal opcode. Usually this is used as an alternative to unconditional trap for software breakpoints
- Debug interrupt. i.e. putting a hardware breakpoint when a PC has a sertain address.
Note that with exception of the first solution, you might interfier with the debugger. i.e. debugger to think the processors stopped due to its breakpoints, and your interrupt handler routine will never be called when you a debugging the application.
Best regards,
Teo