break

Breakpoint

Raises a breakpoint exception, with an optional code, that halts execution in this simulator.

Forms

  • break
  • break

    Raises a breakpoint exception (no code). Halts execution in this simulator. Used as an unconditional software breakpoint — the zero-code variant of 'break N'.

Operands

uimm16
An unsigned 16-bit immediate, 0 to 65535.

Halts execution in this simulator. Useful for embedding debug checkpoints in code, similar to a hardware breakpoint.

# The named instruction intentionally stops here with a breakpoint exception.
# Inspect CP0 cause ($13): exception code 9 is encoded as 0x24.
break