https://github.com/openlabun/mipstranslator
https://mipsconverter.openlab.uninorte.edu.co/
https://github.com/openlabun/mipstranslator
computer-architecture isa mips
Last synced: 6 months ago
JSON representation
https://mipsconverter.openlab.uninorte.edu.co/
- Host: GitHub
- URL: https://github.com/openlabun/mipstranslator
- Owner: openlabun
- License: gpl-3.0
- Created: 2024-02-26T22:13:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T16:55:30.000Z (7 months ago)
- Last Synced: 2025-04-15T20:03:36.789Z (6 months ago)
- Topics: computer-architecture, isa, mips
- Language: TypeScript
- Homepage:
- Size: 1.17 MB
- Stars: 1
- Watchers: 1
- Forks: 16
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MIPS Converter / Translator
This tool is used on the Computer Architecture course at Universidad del Norte. It is used to translate MIPS instructions to Hexadecimal and viceversa. It also has a MIPS simulator that is still under development.Funcionality:
1. From MIPS to Hexa
2. From Hexa to MIPS
3. Export and import Logisim RAM
4. MIPS Simulator (ongoing, add, addi, or, and , load, store are working)List of supported instructions:
1. R (add, sub, and, or)
2. Load
3. Store
4. Branch (beq, bne)
5. JumpTo dockerize the app:
docker build -t mipstranslatori .
docker run -d -it -p 5008:4200 --restart unless-stopped --name mipstranslator-app mipstranslatoricd app
docker build -f Dockerfile.dev -t mipstranslatordev .
docker run -it --rm \
-v "$(pwd):/usr/src/app" \
-v /usr/src/app/node_modules \
-p 4200:4200 \
mipstranslatordevdocker run -it --rm \
-v "$(pwd):/usr/src/app" \
-v /usr/src/app/node_modules \
-p 4200:4200 \
mipstranslatordevdocker run -it --rm -v "C:\desarrollo\proyectosUninorte\MIPSTranslator\app:/usr/src/app" -v /usr/src/app/node_modules -p 4200:4200 mipstranslatordev
docker build -t mipstranslatordev .
docker run --rm -it -p 5008:4200 -v "$(pwd)/app:/project" mipstranslatordevMIPS example:
```assembly
addi t0 t0 0x01
addi t4 t4 0x02
add t0 t0 t0
add t0 t0 t0
add t1 t0 t0
add t2 t1 t1
add t3 t2 t2
```
Translates to:
```assembly
21080001
218C0002
01084020
01084020
01084820
01295020
014A5820
```
Expected result:
```assembly
t0 = 4
t1 = 8
t2 = 10 (hex)
t3 = 20 (hex)
t4 = 2
```To test (inside the app folder):
npm install
npm run ng serve
Augusto Salazar
Universidad del Norte 2024
GNU General Public License v3.0