The debugging support of the LANai 3.0 processor enables debugging of
programs that run in the user context. As discussed in the LANai
3.0 specification, the isr register includes the dbg_bit,
which is always set to 1. As long as the corresponding bit in the
imr register is set to 1, the interrupt request for the LANai 3.0
processor will be asserted.
The following technique can be used for debugging code in the user context on a timestep-by-timestep basis:
dbg_bit of imr to 1.
punt instruction, switching to user context.