/MIPS-Simulator

Computer Architecture project (MIPS simulation)

Primary LanguagePythonMIT LicenseMIT

CA

Computer Architecture project (MIPS simulation)


How to run

run the main.py file and supply the proper flags


Flags

Flag Usage
-a Assemble an assembly file to binary (defaults to simulation)
-i Supply input file (defaults are 'input.asm' for assembling, 'input.b' for simulating)
-o Supply output file (defaults are 'input.b' for assembling, 'sim_output.txt' for simulating)

Running without -a will run a simulation

Supported operations

  • ADD
  • SUB
  • AND
  • OR
  • ADDI
  • LW
  • LH
  • SW
  • SH
  • SLL
  • SRL
  • NOP
  • J
  • Beq