https://github.com/kaplanmaxe/mips-disassembler
A disassembler for the MIPS instruction set
https://github.com/kaplanmaxe/mips-disassembler
Last synced: 7 days ago
JSON representation
A disassembler for the MIPS instruction set
- Host: GitHub
- URL: https://github.com/kaplanmaxe/mips-disassembler
- Owner: kaplanmaxe
- Created: 2019-02-10T01:41:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T02:49:20.000Z (over 7 years ago)
- Last Synced: 2025-03-03T09:42:40.980Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MIPS Disassembler
[](https://travis-ci.com/kaplanmaxe/mips-disassembler)
MIPS Disassembler written in C++
### Description
This project was for a masters class. **It is still a WIP and does not support all instructions correctly.**
It takes in machine code from stdin and outputs the corresponding assembly.
The format of this may change in the future. It was simply an assignment.
### Build
```
cmake .
make
```
### Running
Running `make` (after running `cmake .`) will output an executable called `./mips-disassembler`.
Simply run `./mips-disassembler`
It will accept in machine code as a value in stdin and print the correct result to stdout.
### Example
```
$ ./mips-disassembler
Please enter a 32 bit long string:
00100011101111011111111111100000 <-- You enter this here
Valid bit string: 00100011101111011111111111100000
disassembled result: addi $sp, $sp, -32
```