ReinaldoAssis / mips-sim

WIMS : A Web-based MIPS Simulator

Home Page:https://ufal-wims.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chakra React Netlify

Choose your language

MIPS SIM

A simulator based on the MIPS 32 architecture envisioned to help students learn and explore the foundations of assembly language and circuit schematics.

Features

  • Built-in code editor
  • Step by step execution and debugging
  • I/O Output (screen and keyboard) [WORK IN PROGRESS]
  • Terminal Output
  • Schematics visualization [WORK IN PROGRESS]

Documentation

A documentation is yet to be made, as of now I would recommend checking the use instructions and reading the Instruction Set page.

Usage/Examples

This is the default code when you first open the editor, it computes the nth number of the fibonacci sequence. You can either press the green button to assemble and run or you can step through each instruction using the yellow button. The result is displayed in the terminal.

addi $t0, $zero, 0 #f1
addi $t1, $zero, 1 #f2
addi $a0, $zero, 15 #n
addi $a0 $a0 -1

fibonacci:
	addi $a0, $a0, -1
	add $t2, $t0, $t1 #soma
	add $t0, $zero, $t1 #f1 = f2
	add $t1, $zero, $t2 #f2 = soma
	beq $a0, $zero, main
	bne $a0, $zero, fibonacci

main:
	addi $v0, $t1, 0
	call 1

Screenshots

Editor and terminal

Editor and terminal

Instruction Set

Instruction Set

Authors

About

WIMS : A Web-based MIPS Simulator

https://ufal-wims.netlify.app


Languages

Language:TypeScript 73.8%Language:HTML 26.2%