Skip to content

ReinaldoAssis/mips-sim

Repository files navigation

Chakra React Netlify

Choose your language

WIMS (Web-based Interactive MIPS Simulator)

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

Features

  • Built-in code editor
  • Step by step execution and debugging
  • I/O Output (screen and keyboard)
  • Terminal Output
  • Datapath visualization

Documentation

The simulator's documentation can be viewed at WIMS Doc.

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