Skip to content

openlabun/dockerhubImageUploadTest

Repository files navigation

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.

Funcionalities

  • From MIPS to Hexa
  • From Hexa to MIPS
  • Export and import Logisim RAM
  • MIPS Simulator (ongoing, add, addi, or, and , load, store are working)

Supported instructions

  • R (add, sub, and, or)
  • Load
  • Store
  • Branch (beq, bne)
  • Jump

Dockerizing the app

Production

cd app
docker build -t mipstranslatori .
docker run -d -it -p 5008:4200 --restart unless-stopped --name mipstranslator-app mipstranslatori

Development

cd 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 mipstranslatordev

Windows (Absolute path)

docker run -it --rm -v "C:\desarrollo\proyectosUninorte\MIPSTranslator\app:/usr/src/app" -v /usr/src/app/node_modules -p 4200:4200 mipstranslatordev

Alternative

docker build -t mipstranslatordev .
docker run --rm -it -p 5008:4200 -v "$(pwd)/app:/project" mipstranslatordev

MIPS example

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

21080001
218C0002
01084020
01084020
01084820
01295020
014A5820

Expected result

t0 = 4
t1 = 8
t2 = 10 (hex)
t3 = 20 (hex)
t4 = 2

Testing inside the folder (Only Angular)

npm install
npm run ng serve

Augusto Salazar
Universidad del Norte 2024
GNU General Public License v3.0

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published