Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.03 KB

File metadata and controls

51 lines (39 loc) · 1.03 KB

MIPS Disassembler

A simple Java-based MIPS disassembler that decodes binary instructions into human-readable MIPS assembly format.

Features

  • Supports R-format instructions: add, sub, and, or, slt
  • Supports I-format instructions: lw, sw, beq, bne
  • Displays addresses and computed branch targets
  • Processes a fixed instruction set from memory

Getting Started

  1. Clone the repository

    git clone https://github.com/christalphilip/mips-disassembler.git
    cd mips-disassembler
  2. Compile the Java file

    javac MIPSDisassembler.java

Usage

Run the program:

java MIPSDisassembler

Example Output

add $25, $11, $20 lw $7, 20($9) beq $21, $9, Address 0x9a058 sub $17, $13, $21 sw $13, 32($19) ...

View full output

Project Structure

mips-disassembler/ ├── MIPSDisassembler.java ├── README.md ├── LICENSE ├── .gitignore └── output.txt

License

This project is licensed under the MIT License.