In one embodiment, techniques are disclosed for causing a programmable processor
to process one instruction at a time. Single-step debugging may be performed by
taking an exception after each instruction or by invoking emulation mode after
each instruction. The particular single-step debugging technique may be based upon
state of control bits, or may be based upon the processor's current mode of operation,
or both.