/MIPS32-Simulator

MIPS simulator that consists of assembler and virtual machine.

Primary LanguageJava

MIPS32 Simulator

MIPS simulator that consists of assembler and virtual machine.

  • The assembler is responsible for (1) find if an instruction is valid or not, (2) what each instruction is and (3) the labels that accompany some instructions. that is implemented using ad-hoc parsing using Java regular expressions.
  • The virtual machine simulates the structure of MIPS-32 processor and can run the machine language program produced by the assembler.

Prerequisites

You need to know a basic knowledge about assembly language. Example:

start:
addi s0 $0 5
addi $s1 $0 0
loop:
beq $s1 $s0 end
addi $s1 $0 5
j loop
end:
addi $s1 $0 7 

Running the tests

to run any MIPS-32 instruction you need to follow these steps follow the steps descriped in the user manual file :

  • User Manual- screenshots descripe all steps and details you need.

Authors