#mips #cli #decoder #v0 #ra #t6

app rab-disasmdis

Disassemble MIPS instructions directly in your terminal, using the power of rabbitizer

1 release (0 unstable)

new 2.0.0-alpha.3 May 23, 2025

#608 in Command line utilities

MIT license

1.5MB
42K SLoC

rab-disasmdis

Disassemble MIPS instructions directly in your terminal, using the power of rabbitizer.

Basic usage

rab-disasmdis can disassemble the hexadecimal representation of MIPS instructions by passing them as parameters.

Passing a big stream of bytes:

$ cargo run -p rab-disasmdis -- 000470803C028000004E102103E000088C420090
sll         $t6, $a0, 2
lui         $v0, 0x8000
addu        $v0, $v0, $t6
jr          $ra
lw          $v0, 0x90($v0)

Words with 0x prefix:

$ cargo run -p rab-disasmdis -- 0x000470800x3C0280000x004E10210x03E000080x8C420090
sll         $t6, $a0, 2
lui         $v0, 0x8000
addu        $v0, $v0, $t6
jr          $ra
lw          $v0, 0x90($v0)

Passing individual bytes:

$ cargo run -p rab-disasmdis -- 0x00 0x04 0x70 0x80 0x3C 0x02 0x80 0x00 0x00 0x4E 0x10 0x21 0x03 0xE0 0x00 0x08 0x8C 0x42 0x00 0x90
sll         $t6, $a0, 2
lui         $v0, 0x8000
addu        $v0, $v0, $t6
jr          $ra
lw          $v0, 0x90($v0)

Omitting the 0x prefix:

$ cargo run -p rab-disasmdis -- 00 04 70 80 3C 02 80 00 00 4E 10 21 03 E0 00 08 8C 42 00 90
sll         $t6, $a0, 2
lui         $v0, 0x8000
addu        $v0, $v0, $t6
jr          $ra
lw          $v0, 0x90($v0)

Little endian support (-EL or --endian little):

$ cargo run -p rab-disasmdis -- -EL 80 70 04 00 00 80 02 3C 21 10 4E 00 08 00 E0 03 90 00 42 8C
sll         $t6, $a0, 2
lui         $v0, 0x8000
addu        $v0, $v0, $t6
jr          $ra
lw          $v0, 0x90($v0)

Dependencies

~1.1–1.7MB
~33K SLoC