# `break`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/break

**Breakpoint**

Category: System

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

## Forms

- `break uimm16`

- `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`.

## Description

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

## Example

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