https://github.com/anthonytedja/mips
mips script decompiles MIPS assembly instructions & bot functionality
https://github.com/anthonytedja/mips
assembly bootstrap css decompiler discord-bot html javascript mips python
Last synced: 3 months ago
JSON representation
mips script decompiles MIPS assembly instructions & bot functionality
- Host: GitHub
- URL: https://github.com/anthonytedja/mips
- Owner: anthonytedja
- Created: 2021-04-28T18:59:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T18:55:08.000Z (about 4 years ago)
- Last Synced: 2025-03-24T20:18:32.409Z (over 1 year ago)
- Topics: assembly, bootstrap, css, decompiler, discord-bot, html, javascript, mips, python
- Language: JavaScript
- Homepage: https://mips.anthonytedja.com
- Size: 750 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mips
[](https://anthonytedja.github.io/mips)
> mips is a webpage, script, and discord bot that decompiles binary instructions into [`MIPS Assembly.`](https://en.wikibooks.org/wiki/MIPS_Assembly/Instruction_Formats)
## Script Usage
```cpp
SYNTAX: Instruction must be a 32-bit binary string
Type 'exit' to close
--------------------------------------------------
ENTER MIPS INSTRUCTION: 00001000 11010001 00000000 00100110
J-TYPE
OPCODE: 000010 ( j )
ADR: 00110100010000000000100110 ( 13697062 ) ( With Shift 54788248 )
--------------------------------------------------
ENTER MIPS INSTRUCTION: 00010101001001111111111111001101
I-TYPE
OPCODE: 000101 ( bne )
RS: 01001 ( register 9 $t1 )
RT: 00111 ( register 7 $a3 )
IMMED: 1111111111001101 ( 65485 ) ( With Shift -204 )
--------------------------------------------------
ENTER MIPS INSTRUCTION: 0000 0000 1011 0001 0001 0000 0000 0010
R-TYPE
OPCODE: 000000
RS: 00101 ( register 5 $a1 )
RT: 10001 ( register 17 $s1 )
DEST: 00010 ( register 2 $v0 )
SHAMT: 00000 ( 0 bits )
FUNCT: 000010 ( srl )
--------------------------------------------------
ENTER MIPS INSTRUCTION: exit
Closing Script
```
cd into `mips` and run `python decode.py` command or open [`decode.py`](https://github.com/anthonytedja/mips/blob/main/decode.py) to run the script. Requires [`python 3.8+`](https://docs.python.org/3/whatsnew/3.8.html)
- For the discord bot functionality, add the discord token in the `.env` file and use the bot.py file
## Features
- Local Storage saves last instruction
## Built With
- Bootstrap Studio
- Visual Studio Code