# MIPS Instructions

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

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

Every instruction and pseudo-instruction the assembler accepts.

224 entries, each with its own page of markdown:

## Data movement

- [`la`](https://asm-editor.specy.app/documentation/mips/instruction/la.md) `$t1, ($t2) | $t1, imm | $t1, imm($t2) | …` (Pseudo-instruction): Puts the address of a label, or a computed address, into a register.
- [`li`](https://asm-editor.specy.app/documentation/mips/instruction/li.md) `$t1, imm` (Pseudo-instruction): Puts an immediate value into a register, using one or two instructions as its size needs.
- [`lui`](https://asm-editor.specy.app/documentation/mips/instruction/lui.md) `$t1, uimm16`: Puts a 16-bit immediate into the upper half of a register and clears the lower half, often as the first step of a 32-bit constant.
- [`mfhi`](https://asm-editor.specy.app/documentation/mips/instruction/mfhi.md) `$t1`: Copies the special HI register into a register.
- [`mflo`](https://asm-editor.specy.app/documentation/mips/instruction/mflo.md) `$t1`: Copies the special LO register into a register.
- [`move`](https://asm-editor.specy.app/documentation/mips/instruction/move.md) `$t1, $t2` (Pseudo-instruction): Copies the contents of the second register into the first.
- [`movn`](https://asm-editor.specy.app/documentation/mips/instruction/movn.md) `$t1, $t2, $t3`: Copies the second register into the first if the third is not zero, without a branch.
- [`movz`](https://asm-editor.specy.app/documentation/mips/instruction/movz.md) `$t1, $t2, $t3`: Copies the second register into the first if the third is zero, without a branch.
- [`mthi`](https://asm-editor.specy.app/documentation/mips/instruction/mthi.md) `$t1`: Copies a register into the special HI register, overwriting any prior multiply or divide result stored there.
- [`mtlo`](https://asm-editor.specy.app/documentation/mips/instruction/mtlo.md) `$t1`: Copies a register into the special LO register, overwriting any prior multiply or divide result stored there.

## Load and store

- [`lb`](https://asm-editor.specy.app/documentation/mips/instruction/lb.md) `$t1, imm16($t2)`: Loads one byte from the address in the second register plus an offset into the first, sign-extended to 32 bits.
- [`lbu`](https://asm-editor.specy.app/documentation/mips/instruction/lbu.md) `$t1, imm16($t2)`: Loads one byte from the address in the second register plus an offset into the first, zero-extended to 32 bits.
- [`ld`](https://asm-editor.specy.app/documentation/mips/instruction/ld.md) `$t1, imm($t2) | $t1, imm32 | $t1, label | …` (Pseudo-instruction): Loads the 64 bits at an address into the first register and the one numbered after it, as a doubleword.
- [`lh`](https://asm-editor.specy.app/documentation/mips/instruction/lh.md) `$t1, imm16($t2)`: Loads a 16-bit halfword from the address in the second register plus an offset into the first, sign-extended; the address must be halfword-aligned.
- [`lhu`](https://asm-editor.specy.app/documentation/mips/instruction/lhu.md) `$t1, imm16($t2)`: Loads a 16-bit halfword from the address in the second register plus an offset into the first, zero-extended to 32 bits.
- [`lw`](https://asm-editor.specy.app/documentation/mips/instruction/lw.md) `$t1, imm16($t2)`: Loads the 32-bit word at the address in the second register plus an offset into the first; the address must be word-aligned.
- [`lwl`](https://asm-editor.specy.app/documentation/mips/instruction/lwl.md) `$t1, imm16($t2)`: Loads 1 to 4 bytes from an unaligned address into the high-order end of the first register, up to the end of that word.
- [`lwr`](https://asm-editor.specy.app/documentation/mips/instruction/lwr.md) `$t1, imm16($t2)`: Loads 1 to 4 bytes from the start of a word up to an unaligned address into the low-order end of the first register.
- [`pref`](https://asm-editor.specy.app/documentation/mips/instruction/pref.md) `imm5, imm16($t2)`: Hints that the data at the address in a register plus an offset will be needed soon, so the hardware can begin moving it into cache.
- [`sb`](https://asm-editor.specy.app/documentation/mips/instruction/sb.md) `$t1, imm16($t2)`: Stores the lowest 8 bits of the first register at the address in the second plus an offset.
- [`sd`](https://asm-editor.specy.app/documentation/mips/instruction/sd.md) `$t1, imm($t2) | $t1, imm32 | $t1, label | …` (Pseudo-instruction): Stores the first register and the one numbered after it as a 64-bit doubleword at an address.
- [`sh`](https://asm-editor.specy.app/documentation/mips/instruction/sh.md) `$t1, imm16($t2)`: Stores the lowest 16 bits of the first register at the address in the second plus an offset; the address must be halfword-aligned.
- [`sw`](https://asm-editor.specy.app/documentation/mips/instruction/sw.md) `$t1, imm16($t2)`: Stores the 32-bit value in the first register at the address in the second plus an offset; the address must be word-aligned.
- [`swl`](https://asm-editor.specy.app/documentation/mips/instruction/swl.md) `$t1, imm16($t2)`: Stores the high-order 1 to 4 bytes of the first register at an unaligned address, up to the end of that word.
- [`swr`](https://asm-editor.specy.app/documentation/mips/instruction/swr.md) `$t1, imm16($t2)`: Stores the low-order 1 to 4 bytes of the first register from the start of a word up to an unaligned address.
- [`ulh`](https://asm-editor.specy.app/documentation/mips/instruction/ulh.md) `$t1, imm($t2) | $t1, imm32 | $t1, label | …` (Pseudo-instruction): Loads a 16-bit halfword from any byte address into the first register, sign-extended.
- [`ulhu`](https://asm-editor.specy.app/documentation/mips/instruction/ulhu.md) `$t1, imm($t2) | $t1, imm32 | $t1, label | …` (Pseudo-instruction): Loads a 16-bit halfword from any byte address into the first register, zero-extended.
- [`ulw`](https://asm-editor.specy.app/documentation/mips/instruction/ulw.md) `$t1, imm($t2) | $t1, imm32 | $t1, label | …` (Pseudo-instruction): Loads a 32-bit word from any byte address into the first register, whether or not the address is word-aligned.
- [`ush`](https://asm-editor.specy.app/documentation/mips/instruction/ush.md) `$t1, imm($t2) | $t1, imm32 | $t1, label | …` (Pseudo-instruction): Stores the low 16 bits of the first register at any byte address, whether or not the address is halfword-aligned.
- [`usw`](https://asm-editor.specy.app/documentation/mips/instruction/usw.md) `$t1, imm($t2) | $t1, imm32 | $t1, label | …` (Pseudo-instruction): Stores the 32 bits of the first register at any byte address, whether or not the address is word-aligned.

## Arithmetic

- [`abs`](https://asm-editor.specy.app/documentation/mips/instruction/abs.md) `$t1, $t2` (Pseudo-instruction): Sets the first register to the absolute value of the second.
- [`add`](https://asm-editor.specy.app/documentation/mips/instruction/add.md) `$t1, $t2, $t3`: Adds the second and third registers, or the second register and an immediate, and stores the sum in the first, trapping if the signed result overflows.
- [`addi`](https://asm-editor.specy.app/documentation/mips/instruction/addi.md) `$t1, $t2, imm16`: Adds an immediate to the second register and stores the sum in the first, trapping if the signed result overflows.
- [`addiu`](https://asm-editor.specy.app/documentation/mips/instruction/addiu.md) `$t1, $t2, imm16`: Adds a sign-extended immediate to the second register and stores the sum in the first, wrapping on overflow instead of trapping.
- [`addu`](https://asm-editor.specy.app/documentation/mips/instruction/addu.md) `$t1, $t2, $t3`: Adds the second and third registers, or the second register and an immediate, and stores the sum in the first, wrapping on overflow instead of trapping.
- [`div`](https://asm-editor.specy.app/documentation/mips/instruction/div.md) `$t1, $t2`: Divides signed integers: with three operands the quotient goes to the first register, with two it goes to LO and the remainder to HI.
- [`divu`](https://asm-editor.specy.app/documentation/mips/instruction/divu.md) `$t1, $t2`: Divides unsigned integers: with three operands the quotient goes to the first register, with two it goes to LO and the remainder to HI.
- [`madd`](https://asm-editor.specy.app/documentation/mips/instruction/madd.md) `$t1, $t2`: Multiplies the two registers (signed) to form a 64-bit product, then adds that product to the current 64-bit value in HI:LO.
- [`maddu`](https://asm-editor.specy.app/documentation/mips/instruction/maddu.md) `$t1, $t2`: Multiplies the two registers, treating both as unsigned 32-bit integers, then adds the 64-bit product to HI:LO.
- [`msub`](https://asm-editor.specy.app/documentation/mips/instruction/msub.md) `$t1, $t2`: Multiplies the two registers (signed) to form a 64-bit product, then subtracts that product from the current 64-bit value in HI:LO.
- [`msubu`](https://asm-editor.specy.app/documentation/mips/instruction/msubu.md) `$t1, $t2`: Multiplies the two registers, treating both as unsigned 32-bit integers, then subtracts the 64-bit product from HI:LO.
- [`mul`](https://asm-editor.specy.app/documentation/mips/instruction/mul.md) `$t1, $t2, $t3`: Multiplies the second register by the third, or an immediate, as signed values and stores the low 32 bits of the product in the first.
- [`mulo`](https://asm-editor.specy.app/documentation/mips/instruction/mulo.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Multiplies the second register by the third, or an immediate, as signed values and stores the low 32 bits of the product in the first.
- [`mulou`](https://asm-editor.specy.app/documentation/mips/instruction/mulou.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Multiplies the second register by the third, or an immediate, as unsigned values and stores the low 32 bits of the product in the first.
- [`mult`](https://asm-editor.specy.app/documentation/mips/instruction/mult.md) `$t1, $t2`: Multiplies the two registers as signed 32-bit integers and leaves the 64-bit product in HI and LO.
- [`multu`](https://asm-editor.specy.app/documentation/mips/instruction/multu.md) `$t1, $t2`: Multiplies the two registers as unsigned 32-bit integers and leaves the 64-bit product in HI and LO.
- [`mulu`](https://asm-editor.specy.app/documentation/mips/instruction/mulu.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Multiplies the second register by the third, or an immediate, as unsigned values, storing the low 32 bits in the first and the high 32 bits in HI.
- [`neg`](https://asm-editor.specy.app/documentation/mips/instruction/neg.md) `$t1, $t2` (Pseudo-instruction): Sets the first register to the negation of the second.
- [`negu`](https://asm-editor.specy.app/documentation/mips/instruction/negu.md) `$t1, $t2` (Pseudo-instruction): Sets the first register to the negation of the second, wrapping on overflow instead of trapping.
- [`rem`](https://asm-editor.specy.app/documentation/mips/instruction/rem.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to the remainder of the second divided by the third, or an immediate, as signed values.
- [`remu`](https://asm-editor.specy.app/documentation/mips/instruction/remu.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to the remainder of the second divided by the third, or an immediate, as unsigned values.
- [`seb`](https://asm-editor.specy.app/documentation/mips/instruction/seb.md) `$t1, $t2`: Copies the low 8 bits of the second register into the first, with bit 7 replicated through the upper 24 bits.
- [`seh`](https://asm-editor.specy.app/documentation/mips/instruction/seh.md) `$t1, $t2`: Copies the low 16 bits of the second register into the first, with bit 15 replicated through the upper 16 bits.
- [`sub`](https://asm-editor.specy.app/documentation/mips/instruction/sub.md) `$t1, $t2, $t3`: Subtracts the third register, or an immediate, from the second and stores the difference in the first, trapping if the signed result overflows.
- [`subi`](https://asm-editor.specy.app/documentation/mips/instruction/subi.md) `$t1, $t2, imm` (Pseudo-instruction): Subtracts an immediate from the second register and stores the difference in the first, trapping if the signed result overflows.
- [`subiu`](https://asm-editor.specy.app/documentation/mips/instruction/subiu.md) `$t1, $t2, imm32` (Pseudo-instruction): Subtracts an immediate from the second register and stores the difference in the first, wrapping on overflow instead of trapping.
- [`subu`](https://asm-editor.specy.app/documentation/mips/instruction/subu.md) `$t1, $t2, $t3`: Subtracts the third register, or an immediate, from the second and stores the difference in the first, wrapping on overflow instead of trapping.

## Logic

- [`and`](https://asm-editor.specy.app/documentation/mips/instruction/and.md) `$t1, $t2, $t3`: Sets the first register to the bitwise AND of the second and the third, or an immediate, so each result bit is 1 only where both inputs are 1.
- [`andi`](https://asm-editor.specy.app/documentation/mips/instruction/andi.md) `$t1, $t2, uimm16`: Sets the first register to the bitwise AND of the second and an immediate, with the immediate zero-extended instead of sign-extended.
- [`clo`](https://asm-editor.specy.app/documentation/mips/instruction/clo.md) `$t1, $t2`: Sets the first register to the number of consecutive 1 bits in the second, counted from the most-significant bit downward.
- [`clz`](https://asm-editor.specy.app/documentation/mips/instruction/clz.md) `$t1, $t2`: Sets the first register to the number of consecutive 0 bits in the second, counted from the most-significant bit downward.
- [`nor`](https://asm-editor.specy.app/documentation/mips/instruction/nor.md) `$t1, $t2, $t3`: Sets the first register to the bitwise NOR of the second and third, so each result bit is 1 only where both inputs are 0.
- [`not`](https://asm-editor.specy.app/documentation/mips/instruction/not.md) `$t1, $t2` (Pseudo-instruction): Sets the first register to the bitwise complement of the second, flipping every bit.
- [`or`](https://asm-editor.specy.app/documentation/mips/instruction/or.md) `$t1, $t2, $t3`: Sets the first register to the bitwise OR of the second and the third, or an immediate, so each result bit is 1 where either input is 1.
- [`ori`](https://asm-editor.specy.app/documentation/mips/instruction/ori.md) `$t1, $t2, uimm16`: Sets the first register to the bitwise OR of the second and an immediate, with the immediate zero-extended instead of sign-extended.
- [`wsbh`](https://asm-editor.specy.app/documentation/mips/instruction/wsbh.md) `$t1, $t2`: Copies the second register into the first with the two bytes of each halfword exchanged, so 0xAABBCCDD becomes 0xBBAADDCC.
- [`xor`](https://asm-editor.specy.app/documentation/mips/instruction/xor.md) `$t1, $t2, $t3`: Sets the first register to the bitwise XOR of the second and the third, or an immediate, so each result bit is 1 where the inputs differ.
- [`xori`](https://asm-editor.specy.app/documentation/mips/instruction/xori.md) `$t1, $t2, uimm16`: Sets the first register to the bitwise XOR of the second and an immediate, with the immediate zero-extended instead of sign-extended.

## Shifts and rotates

- [`rol`](https://asm-editor.specy.app/documentation/mips/instruction/rol.md) `$t1, $t2, $t3 | $t1, $t2, imm5` (Pseudo-instruction): Rotates the second register left by the amount in the third, or by a 5-bit immediate, and stores the result in the first.
- [`ror`](https://asm-editor.specy.app/documentation/mips/instruction/ror.md) `$t1, $t2, $t3 | $t1, $t2, imm5` (Pseudo-instruction): Rotates the second register right by the amount in the third, or by a 5-bit immediate, and stores the result in the first.
- [`rotr`](https://asm-editor.specy.app/documentation/mips/instruction/rotr.md) `$t1, $t2, imm5`: Rotates the second register right by a fixed amount of 0 to 31 bits, with bits leaving the right end re-entering on the left, and stores the result in the first.
- [`rotrv`](https://asm-editor.specy.app/documentation/mips/instruction/rotrv.md) `$t1, $t2, $t3`: Rotates the second register right by the amount in the low 5 bits of the third and stores the result in the first.
- [`sll`](https://asm-editor.specy.app/documentation/mips/instruction/sll.md) `$t1, $t2, imm5`: Shifts the second register left by a fixed amount of 0 to 31 bits, filling vacated bits with zeros, and stores the result in the first.
- [`sllv`](https://asm-editor.specy.app/documentation/mips/instruction/sllv.md) `$t1, $t2, $t3`: Shifts the second register left by the amount in the low 5 bits of the third, filling vacated bits with zeros, and stores the result in the first.
- [`sra`](https://asm-editor.specy.app/documentation/mips/instruction/sra.md) `$t1, $t2, imm5`: Shifts the second register right by a fixed amount of 0 to 31 bits, filling vacated bits with copies of the sign bit, and stores the result in the first.
- [`srav`](https://asm-editor.specy.app/documentation/mips/instruction/srav.md) `$t1, $t2, $t3`: Shifts the second register right by the amount in the low 5 bits of the third, filling vacated bits with the sign bit, and stores the result in the first.
- [`srl`](https://asm-editor.specy.app/documentation/mips/instruction/srl.md) `$t1, $t2, imm5`: Shifts the second register right by a fixed amount of 0 to 31 bits, filling vacated bits with zeros, and stores the result in the first.
- [`srlv`](https://asm-editor.specy.app/documentation/mips/instruction/srlv.md) `$t1, $t2, $t3`: Shifts the second register right by the amount in the low 5 bits of the third, filling vacated bits with zeros, and stores the result in the first.

## Comparison

- [`seq`](https://asm-editor.specy.app/documentation/mips/instruction/seq.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second equals the third, or an immediate, otherwise to 0.
- [`sge`](https://asm-editor.specy.app/documentation/mips/instruction/sge.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second is greater than or equal to the third, or an immediate, as signed values, otherwise to 0.
- [`sgeu`](https://asm-editor.specy.app/documentation/mips/instruction/sgeu.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second is greater than or equal to the third, or an immediate, as unsigned values, otherwise to 0.
- [`sgt`](https://asm-editor.specy.app/documentation/mips/instruction/sgt.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second is greater than the third, or an immediate, as signed values, otherwise to 0.
- [`sgtu`](https://asm-editor.specy.app/documentation/mips/instruction/sgtu.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second is greater than the third, or an immediate, as unsigned values, otherwise to 0.
- [`sle`](https://asm-editor.specy.app/documentation/mips/instruction/sle.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second is less than or equal to the third, or an immediate, as signed values, otherwise to 0.
- [`sleu`](https://asm-editor.specy.app/documentation/mips/instruction/sleu.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second is less than or equal to the third, or an immediate, as unsigned values, otherwise to 0.
- [`slt`](https://asm-editor.specy.app/documentation/mips/instruction/slt.md) `$t1, $t2, $t3`: Sets the first register to 1 if the second is less than the third as signed integers, otherwise to 0.
- [`slti`](https://asm-editor.specy.app/documentation/mips/instruction/slti.md) `$t1, $t2, imm16`: Sets the first register to 1 if the second is less than an immediate as signed integers, otherwise to 0.
- [`sltiu`](https://asm-editor.specy.app/documentation/mips/instruction/sltiu.md) `$t1, $t2, imm16`: Sets the first register to 1 if the second is less than an immediate as unsigned integers, otherwise to 0.
- [`sltu`](https://asm-editor.specy.app/documentation/mips/instruction/sltu.md) `$t1, $t2, $t3`: Sets the first register to 1 if the second is less than the third as unsigned integers, otherwise to 0.
- [`sne`](https://asm-editor.specy.app/documentation/mips/instruction/sne.md) `$t1, $t2, $t3 | $t1, $t2, imm` (Pseudo-instruction): Sets the first register to 1 if the second does not equal the third, or an immediate, otherwise to 0.

## Control flow

- [`b`](https://asm-editor.specy.app/documentation/mips/instruction/b.md) `label` (Pseudo-instruction): Branches unconditionally to label.
- [`bal`](https://asm-editor.specy.app/documentation/mips/instruction/bal.md) `label` (Pseudo-instruction): Branches unconditionally to label and saves the return address in $ra.
- [`beq`](https://asm-editor.specy.app/documentation/mips/instruction/beq.md) `$t1, $t2, label`: Branches to label if the first register equals the second, or an immediate.
- [`beqz`](https://asm-editor.specy.app/documentation/mips/instruction/beqz.md) `$t1, label` (Pseudo-instruction): Branches to label if the register is zero.
- [`bge`](https://asm-editor.specy.app/documentation/mips/instruction/bge.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is greater than or equal to the second, or an immediate, as signed values.
- [`bgeu`](https://asm-editor.specy.app/documentation/mips/instruction/bgeu.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is greater than or equal to the second, or an immediate, as unsigned values.
- [`bgez`](https://asm-editor.specy.app/documentation/mips/instruction/bgez.md) `$t1, label`: Branches to label if the register is greater than or equal to zero, as a signed comparison.
- [`bgezal`](https://asm-editor.specy.app/documentation/mips/instruction/bgezal.md) `$t1, label`: Branches to label if the register is greater than or equal to zero, saving the return address in $ra.
- [`bgt`](https://asm-editor.specy.app/documentation/mips/instruction/bgt.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is greater than the second, or an immediate, as signed values.
- [`bgtu`](https://asm-editor.specy.app/documentation/mips/instruction/bgtu.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is greater than the second, or an immediate, as unsigned values.
- [`bgtz`](https://asm-editor.specy.app/documentation/mips/instruction/bgtz.md) `$t1, label`: Branches to label if the register is greater than zero, as a signed comparison.
- [`ble`](https://asm-editor.specy.app/documentation/mips/instruction/ble.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is less than or equal to the second, or an immediate, as signed values.
- [`bleu`](https://asm-editor.specy.app/documentation/mips/instruction/bleu.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is less than or equal to the second, or an immediate, as unsigned values.
- [`blez`](https://asm-editor.specy.app/documentation/mips/instruction/blez.md) `$t1, label`: Branches to label if the register is less than or equal to zero, as a signed comparison.
- [`blt`](https://asm-editor.specy.app/documentation/mips/instruction/blt.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is less than the second, or an immediate, as signed values.
- [`bltu`](https://asm-editor.specy.app/documentation/mips/instruction/bltu.md) `$t1, $t2, label | $t1, imm, label` (Pseudo-instruction): Branches to label if the first register is less than the second, or an immediate, as unsigned values.
- [`bltz`](https://asm-editor.specy.app/documentation/mips/instruction/bltz.md) `$t1, label`: Branches to label if the register is less than zero, as a signed comparison.
- [`bltzal`](https://asm-editor.specy.app/documentation/mips/instruction/bltzal.md) `$t1, label`: Branches to label if the register is less than zero, saving the return address in $ra.
- [`bne`](https://asm-editor.specy.app/documentation/mips/instruction/bne.md) `$t1, $t2, label`: Branches to label if the first register does not equal the second, or an immediate.
- [`bnez`](https://asm-editor.specy.app/documentation/mips/instruction/bnez.md) `$t1, label` (Pseudo-instruction): Branches to label if the register is not zero.
- [`j`](https://asm-editor.specy.app/documentation/mips/instruction/j.md) `label`: Jumps unconditionally to label, which must lie in the same 256 MB region as the instruction after the jump.
- [`jal`](https://asm-editor.specy.app/documentation/mips/instruction/jal.md) `label`: Saves the return address in $ra and jumps to label, the usual way to call a function.
- [`jalr`](https://asm-editor.specy.app/documentation/mips/instruction/jalr.md) `$t1, $t2 | $t1`: Saves the return address in the first register and jumps to the address in the second; with one register, the return address goes to $ra.
- [`jr`](https://asm-editor.specy.app/documentation/mips/instruction/jr.md) `$t1`: Transfers execution to the address stored in a register.

## Floating point

- [`abs.d`](https://asm-editor.specy.app/documentation/mips/instruction/abs.d.md) `$f2, $f4`: Sets the first register to the absolute value of the double-precision value in the second.
- [`abs.s`](https://asm-editor.specy.app/documentation/mips/instruction/abs.s.md) `$f0, $f1`: Sets the first register to the absolute value of the single-precision value in the second.
- [`add.d`](https://asm-editor.specy.app/documentation/mips/instruction/add.d.md) `$f2, $f4, $f6`: Adds the second and third registers using IEEE 754 double-precision (64-bit) arithmetic and stores the sum in the first.
- [`add.s`](https://asm-editor.specy.app/documentation/mips/instruction/add.s.md) `$f0, $f1, $f3`: Adds the second and third registers using IEEE 754 single-precision (32-bit) arithmetic and stores the sum in the first.
- [`bc1f`](https://asm-editor.specy.app/documentation/mips/instruction/bc1f.md) `label | cc, label`: Branches to label if the FP condition flag (flag 0 by default) is false, as set by a preceding compare instruction.
- [`bc1t`](https://asm-editor.specy.app/documentation/mips/instruction/bc1t.md) `label | cc, label`: Branches to label if the FP condition flag (flag 0 by default) is true, as set by a preceding compare instruction.
- [`c.eq.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.eq.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if the two registers are equal.
- [`c.eq.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.eq.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if the two registers are equal.
- [`c.f.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.f.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to false, since this compare is never true.
- [`c.f.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.f.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to false, since this compare is never true.
- [`c.le.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.le.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if the first register is less than or equal to the second; the signaling form acts like c.ole.d here.
- [`c.le.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.le.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if the first register is less than or equal to the second; the signaling form acts like c.ole.s here.
- [`c.lt.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.lt.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if the first register is less than the second; the signaling form acts like c.olt.d here.
- [`c.lt.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.lt.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if the first register is less than the second; the signaling form acts like c.olt.s here.
- [`c.nge.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.nge.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if either register is NaN or the first is less than the second; the signaling form acts like c.ult.d here.
- [`c.nge.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.nge.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if either register is NaN or the first is less than the second; the signaling form acts like c.ult.s here.
- [`c.ngl.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.ngl.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if the two registers are equal or either is NaN; the signaling form acts like c.ueq.d here.
- [`c.ngl.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.ngl.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if the two registers are equal or either is NaN; the signaling form acts like c.ueq.s here.
- [`c.ngle.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.ngle.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if either register is NaN; the signaling form acts like c.un.d here.
- [`c.ngle.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.ngle.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if either register is NaN; the signaling form acts like c.un.s here.
- [`c.ngt.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.ngt.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if either register is NaN or the first is less than or equal to the second; the signaling form acts like c.ule.d here.
- [`c.ngt.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.ngt.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if either register is NaN or the first is less than or equal to the second; the signaling form acts like c.ule.s here.
- [`c.ole.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.ole.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if neither register is NaN and the first is less than or equal to the second.
- [`c.ole.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.ole.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if neither register is NaN and the first is less than or equal to the second.
- [`c.olt.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.olt.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if neither register is NaN and the first is less than the second.
- [`c.olt.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.olt.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if neither register is NaN and the first is less than the second.
- [`c.seq.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.seq.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if the two registers are equal; the signaling form acts like c.eq.d here.
- [`c.seq.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.seq.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if the two registers are equal; the signaling form acts like c.eq.s here.
- [`c.sf.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.sf.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to false, since this compare is never true; the signaling form acts like c.f.d here.
- [`c.sf.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.sf.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to false, since this compare is never true; the signaling form acts like c.f.s here.
- [`c.ueq.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.ueq.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if the two registers are equal or either is NaN.
- [`c.ueq.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.ueq.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if the two registers are equal or either is NaN.
- [`c.ule.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.ule.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if either register is NaN or the first is less than or equal to the second.
- [`c.ule.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.ule.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if either register is NaN or the first is less than or equal to the second.
- [`c.ult.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.ult.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if either register is NaN or the first is less than the second.
- [`c.ult.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.ult.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if either register is NaN or the first is less than the second.
- [`c.un.d`](https://asm-editor.specy.app/documentation/mips/instruction/c.un.d.md) `$f2, $f4 | cc, $f2, $f4`: Sets FP condition flag 0 to true if either register is NaN.
- [`c.un.s`](https://asm-editor.specy.app/documentation/mips/instruction/c.un.s.md) `$f0, $f1 | cc, $f0, $f1`: Sets FP condition flag 0 to true if either register is NaN.
- [`ceil.w.d`](https://asm-editor.specy.app/documentation/mips/instruction/ceil.w.d.md) `$f1, $f2`: Converts the double-precision value in the second register to a 32-bit integer in the first, rounding toward positive infinity.
- [`ceil.w.s`](https://asm-editor.specy.app/documentation/mips/instruction/ceil.w.s.md) `$f0, $f1`: Converts the single-precision value in the second register to a 32-bit integer in the first, rounding toward positive infinity.
- [`cfc1`](https://asm-editor.specy.app/documentation/mips/instruction/cfc1.md) `$t1, $f31`: Copies the second register, an FPU control register, into the first, an integer register.
- [`ctc1`](https://asm-editor.specy.app/documentation/mips/instruction/ctc1.md) `$t1, $f31`: Copies the first register, an integer register, into the second, an FPU control register.
- [`cvt.d.s`](https://asm-editor.specy.app/documentation/mips/instruction/cvt.d.s.md) `$f2, $f1`: Converts the single-precision float in the second register to double-precision (64-bit IEEE 754) and stores the result in the first.
- [`cvt.d.w`](https://asm-editor.specy.app/documentation/mips/instruction/cvt.d.w.md) `$f2, $f1`: Treats the 32-bit integer stored in the second register as a signed integer and converts it to a double-precision float stored in the first.
- [`cvt.s.d`](https://asm-editor.specy.app/documentation/mips/instruction/cvt.s.d.md) `$f1, $f2`: Converts the double-precision float in the second register to single-precision and stores the result in the first.
- [`cvt.s.w`](https://asm-editor.specy.app/documentation/mips/instruction/cvt.s.w.md) `$f0, $f1`: Treats the 32-bit integer stored in the second register as a signed integer and converts it to a single-precision float stored in the first.
- [`cvt.w.d`](https://asm-editor.specy.app/documentation/mips/instruction/cvt.w.d.md) `$f1, $f2`: Converts the double-precision float in the second register to a signed 32-bit integer by truncation and stores the result in the first.
- [`cvt.w.s`](https://asm-editor.specy.app/documentation/mips/instruction/cvt.w.s.md) `$f0, $f1`: Converts the single-precision float in the second register to a signed 32-bit integer by truncation and stores the result in the first.
- [`div.d`](https://asm-editor.specy.app/documentation/mips/instruction/div.d.md) `$f2, $f4, $f6`: Divides the second register by the third using IEEE 754 double-precision (64-bit) arithmetic and stores the quotient in the first.
- [`div.s`](https://asm-editor.specy.app/documentation/mips/instruction/div.s.md) `$f0, $f1, $f3`: Divides the second register by the third using IEEE 754 single-precision (32-bit) arithmetic and stores the quotient in the first.
- [`floor.w.d`](https://asm-editor.specy.app/documentation/mips/instruction/floor.w.d.md) `$f1, $f2`: Converts the double-precision value in the second register to a 32-bit integer in the first, rounding toward negative infinity.
- [`floor.w.s`](https://asm-editor.specy.app/documentation/mips/instruction/floor.w.s.md) `$f0, $f1`: Converts the single-precision value in the second register to a 32-bit integer in the first, rounding toward negative infinity.
- [`l.d`](https://asm-editor.specy.app/documentation/mips/instruction/l.d.md) `$f2, ($t2) | $f2, imm | $f2, imm32($t2) | …` (Pseudo-instruction): Loads a double-precision value into the FP register pair starting at the first register, from an address or a label.
- [`l.s`](https://asm-editor.specy.app/documentation/mips/instruction/l.s.md) `$f1, ($t2) | $f1, imm | $f1, imm32($t2) | …` (Pseudo-instruction): Loads a single-precision value from memory into the first register, from a register-plus-offset address or a label.
- [`ldc1`](https://asm-editor.specy.app/documentation/mips/instruction/ldc1.md) `$f2, imm16($t2)`: Loads the 64-bit value at the address in the second register plus an offset into the even FP register pair starting at the first.
- [`lwc1`](https://asm-editor.specy.app/documentation/mips/instruction/lwc1.md) `$f1, imm16($t2)`: Loads the 32-bit value at the address in the second register plus an offset directly into the first, an FP register.
- [`mfc1`](https://asm-editor.specy.app/documentation/mips/instruction/mfc1.md) `$t1, $f1`: Copies the raw 32-bit bit-pattern stored in the second register, an FP register, into the first, an integer register.
- [`mfc1.d`](https://asm-editor.specy.app/documentation/mips/instruction/mfc1.d.md) `$t1, $f2` (Pseudo-instruction): Copies the FP register pair starting at the second register into the integer register pair starting at the first.
- [`mov.d`](https://asm-editor.specy.app/documentation/mips/instruction/mov.d.md) `$f2, $f4`: Copies the double-precision value in the second register into the first.
- [`mov.s`](https://asm-editor.specy.app/documentation/mips/instruction/mov.s.md) `$f0, $f1`: Copies the single-precision value in the second register into the first.
- [`movf`](https://asm-editor.specy.app/documentation/mips/instruction/movf.md) `$t1, $t2 | $t1, $t2, cc`: Copies the second register into the first if the FP condition flag (flag 0 by default) is false.
- [`movf.d`](https://asm-editor.specy.app/documentation/mips/instruction/movf.d.md) `$f2, $f4 | $f2, $f4, cc`: Copies the double-precision value in the second register into the first if the FP condition flag (flag 0 by default) is false.
- [`movf.s`](https://asm-editor.specy.app/documentation/mips/instruction/movf.s.md) `$f0, $f1 | $f0, $f1, cc`: Copies the single-precision value in the second register into the first if the FP condition flag (flag 0 by default) is false.
- [`movn.d`](https://asm-editor.specy.app/documentation/mips/instruction/movn.d.md) `$f2, $f4, $t3`: Copies the double-precision value in the second register into the first if the third, an integer register, is not zero.
- [`movn.s`](https://asm-editor.specy.app/documentation/mips/instruction/movn.s.md) `$f0, $f1, $t3`: Copies the single-precision value in the second register into the first if the third, an integer register, is not zero.
- [`movt`](https://asm-editor.specy.app/documentation/mips/instruction/movt.md) `$t1, $t2 | $t1, $t2, cc`: Copies the second register into the first if the FP condition flag (flag 0 by default) is true.
- [`movt.d`](https://asm-editor.specy.app/documentation/mips/instruction/movt.d.md) `$f2, $f4 | $f2, $f4, cc`: Copies the double-precision value in the second register into the first if the FP condition flag (flag 0 by default) is true.
- [`movt.s`](https://asm-editor.specy.app/documentation/mips/instruction/movt.s.md) `$f0, $f1 | $f0, $f1, cc`: Copies the single-precision value in the second register into the first if the FP condition flag (flag 0 by default) is true.
- [`movz.d`](https://asm-editor.specy.app/documentation/mips/instruction/movz.d.md) `$f2, $f4, $t3`: Copies the double-precision value in the second register into the first if the third, an integer register, is zero.
- [`movz.s`](https://asm-editor.specy.app/documentation/mips/instruction/movz.s.md) `$f0, $f1, $t3`: Copies the single-precision value in the second register into the first if the third, an integer register, is zero.
- [`mtc1`](https://asm-editor.specy.app/documentation/mips/instruction/mtc1.md) `$t1, $f1`: Copies the 32-bit value in the first register, an integer register, into the second, an FP register, without any conversion.
- [`mtc1.d`](https://asm-editor.specy.app/documentation/mips/instruction/mtc1.d.md) `$t1, $f2` (Pseudo-instruction): Copies the integer register pair starting at the first register into the FP register pair starting at the second.
- [`mul.d`](https://asm-editor.specy.app/documentation/mips/instruction/mul.d.md) `$f2, $f4, $f6`: Multiplies the second and third registers using IEEE 754 double-precision (64-bit) arithmetic and stores the product in the first.
- [`mul.s`](https://asm-editor.specy.app/documentation/mips/instruction/mul.s.md) `$f0, $f1, $f3`: Multiplies the second and third registers using IEEE 754 single-precision (32-bit) arithmetic and stores the product in the first.
- [`neg.d`](https://asm-editor.specy.app/documentation/mips/instruction/neg.d.md) `$f2, $f4`: Sets the first register to the negation of the double-precision value in the second, by flipping the sign bit.
- [`neg.s`](https://asm-editor.specy.app/documentation/mips/instruction/neg.s.md) `$f0, $f1`: Sets the first register to the negation of the single-precision value in the second, by flipping the sign bit.
- [`round.w.d`](https://asm-editor.specy.app/documentation/mips/instruction/round.w.d.md) `$f1, $f2`: Converts the double-precision value in the second register to the nearest 32-bit integer in the first, rounding half to even.
- [`round.w.s`](https://asm-editor.specy.app/documentation/mips/instruction/round.w.s.md) `$f0, $f1`: Converts the single-precision value in the second register to the nearest 32-bit integer in the first, rounding half to even.
- [`s.d`](https://asm-editor.specy.app/documentation/mips/instruction/s.d.md) `$f2, ($t2) | $f2, imm | $f2, imm32($t2) | …` (Pseudo-instruction): Stores the double-precision value in the FP register pair starting at the first register to memory, at an address or a label.
- [`s.s`](https://asm-editor.specy.app/documentation/mips/instruction/s.s.md) `$f1, ($t2) | $f1, imm | $f1, imm32($t2) | …` (Pseudo-instruction): Stores the single-precision value in the first register to memory, at a register-plus-offset address or a label.
- [`sdc1`](https://asm-editor.specy.app/documentation/mips/instruction/sdc1.md) `$f2, imm16($t2)`: Writes the 64-bit value in the even FP register pair starting at the first register to memory, at the address in the second plus an offset.
- [`sqrt.d`](https://asm-editor.specy.app/documentation/mips/instruction/sqrt.d.md) `$f2, $f4`: Sets the first register to the square root of the double-precision value in the second, or to NaN if that value is negative.
- [`sqrt.s`](https://asm-editor.specy.app/documentation/mips/instruction/sqrt.s.md) `$f0, $f1`: Sets the first register to the square root of the single-precision value in the second, or to NaN if that value is negative.
- [`sub.d`](https://asm-editor.specy.app/documentation/mips/instruction/sub.d.md) `$f2, $f4, $f6`: Subtracts the third register from the second using IEEE 754 double-precision (64-bit) arithmetic and stores the difference in the first.
- [`sub.s`](https://asm-editor.specy.app/documentation/mips/instruction/sub.s.md) `$f0, $f1, $f3`: Subtracts the third register from the second using IEEE 754 single-precision (32-bit) arithmetic and stores the difference in the first.
- [`swc1`](https://asm-editor.specy.app/documentation/mips/instruction/swc1.md) `$f1, imm16($t2)`: Writes the 32-bit value in the first register, an FP register, to memory at the address in the second plus an offset.
- [`trunc.w.d`](https://asm-editor.specy.app/documentation/mips/instruction/trunc.w.d.md) `$f1, $f2`: Converts the double-precision value in the second register to a 32-bit integer in the first, rounding toward zero.
- [`trunc.w.s`](https://asm-editor.specy.app/documentation/mips/instruction/trunc.w.s.md) `$f0, $f1`: Converts the single-precision value in the second register to a 32-bit integer in the first, rounding toward zero.

## Atomic

- [`ll`](https://asm-editor.specy.app/documentation/mips/instruction/ll.md) `$t1, imm16($t2)`: Loads a 32-bit word into the first register like lw; paired with sc, it forms an atomic read-modify-write on multiprocessor hardware.
- [`sc`](https://asm-editor.specy.app/documentation/mips/instruction/sc.md) `$t1, imm16($t2)`: Stores the first register at the address in the second plus an offset and sets the first register to 1 if the store succeeds, or 0 if it fails.
- [`sync`](https://asm-editor.specy.app/documentation/mips/instruction/sync.md) `[imm5]`: Orders the loads and stores around it, so that another processor observes them in program order.

## System

- [`break`](https://asm-editor.specy.app/documentation/mips/instruction/break.md) `[uimm16]`: Raises a breakpoint exception, with an optional code, that halts execution in this simulator.
- [`eret`](https://asm-editor.specy.app/documentation/mips/instruction/eret.md): Returns from an exception or interrupt handler by restoring the PC from EPC and clearing the exception level bit.
- [`mfc0`](https://asm-editor.specy.app/documentation/mips/instruction/mfc0.md) `$t1, $8`: Reads the second register, a Coprocessor 0 (CP0) control register, and places its value in the first, a general-purpose register.
- [`mtc0`](https://asm-editor.specy.app/documentation/mips/instruction/mtc0.md) `$t1, $8`: Writes the value of the first register, a general-purpose register, into the second, a Coprocessor 0 (CP0) control register.
- [`nop`](https://asm-editor.specy.app/documentation/mips/instruction/nop.md): Does nothing; the processor simply advances to the next instruction.
- [`syscall`](https://asm-editor.specy.app/documentation/mips/instruction/syscall.md): Invokes an OS service identified by the integer in $v0.
- [`teq`](https://asm-editor.specy.app/documentation/mips/instruction/teq.md) `$t1, $t2`: Raises a trap exception if the two registers are equal, which halts execution in this simulator.
- [`teqi`](https://asm-editor.specy.app/documentation/mips/instruction/teqi.md) `$t1, imm16`: Raises a trap exception if the register equals an immediate, sign-extended to 32 bits.
- [`tge`](https://asm-editor.specy.app/documentation/mips/instruction/tge.md) `$t1, $t2`: Raises a trap exception if the first register is greater than or equal to the second, as signed values.
- [`tgei`](https://asm-editor.specy.app/documentation/mips/instruction/tgei.md) `$t1, imm16`: Raises a trap exception if the register is greater than or equal to an immediate, as signed values.
- [`tgeiu`](https://asm-editor.specy.app/documentation/mips/instruction/tgeiu.md) `$t1, imm16`: Raises a trap exception if the register is greater than or equal to an immediate, as unsigned values.
- [`tgeu`](https://asm-editor.specy.app/documentation/mips/instruction/tgeu.md) `$t1, $t2`: Raises a trap exception if the first register is greater than or equal to the second, as unsigned values.
- [`tlt`](https://asm-editor.specy.app/documentation/mips/instruction/tlt.md) `$t1, $t2`: Raises a trap exception if the first register is less than the second, as signed values.
- [`tlti`](https://asm-editor.specy.app/documentation/mips/instruction/tlti.md) `$t1, imm16`: Raises a trap exception if the register is less than an immediate, as signed values.
- [`tltiu`](https://asm-editor.specy.app/documentation/mips/instruction/tltiu.md) `$t1, imm16`: Raises a trap exception if the register is less than an immediate, as unsigned values.
- [`tltu`](https://asm-editor.specy.app/documentation/mips/instruction/tltu.md) `$t1, $t2`: Raises a trap exception if the first register is less than the second, as unsigned values.
- [`tne`](https://asm-editor.specy.app/documentation/mips/instruction/tne.md) `$t1, $t2`: Raises a trap exception if the two registers are not equal, which halts execution in this simulator.
- [`tnei`](https://asm-editor.specy.app/documentation/mips/instruction/tnei.md) `$t1, imm16`: Raises a trap exception if the register does not equal an immediate, sign-extended to 32 bits.
- [`wait`](https://asm-editor.specy.app/documentation/mips/instruction/wait.md): Continues immediately in this simulator. A loop around wait still consumes instructions.
