It is a program to simulate the behavior of MIPS machine written in C. It can run most of the instructions in the MIPS instruction set
C Assembly C++ Makefile
Switch branches/tags
Nothing to show
Latest commit 4fa5970 Dec 7, 2014 @rajatkhanduja Merge pull request #1 from rameshgkwd05/patch-1
corrections in makefile
Permalink
Failed to load latest commit information.
bin Removed print statements Jul 7, 2011
include Initial code Jul 7, 2011
src Removed print statements Jul 7, 2011
README Added README Jul 7, 2011
documentation.doc Initial code Jul 7, 2011
makefile corrections inmakefile Sep 22, 2014
multiply_num.asm Initial code Jul 7, 2011
out Initial code Jul 7, 2011

README

This is a MIPS simulator written in C.

------------------------------------------
Compilation Instructions :-
------------------------------------------
1. cd to the directory.
2. Use make command to compile the source code. The executable file is created as bin/simulator.
3. There is a sample program (written in MIPS) in the bin/folder (bin/multiply_num.asm). 
4. To run the program, use :-
	$ bin/simulator bin/multiply_num.asm

----------------------------------------------------------------------------------------

------------------------------------------
General instructions :-
------------------------------------------

The simulator can run the following subset of the MIPS instruction set in the format described 

	-> add $rd $rs $rt	[immediate value can be given instead of $rs & $rt]
	-> sub $rd $rs $rt	[immediate value can be given instead of $rs & $rt]
	-> and $rd $rs $rt	[immediate value can be given instead of $rs & $rt]
	-> or  $rd $rs $rt	[immediate value can be given instead of $rs & $rt]
	-> slt $rd $rs $rt	[immediate value can be given instead of $rs & $rt]
	-> move $rd $rs 	[immediate value can be given instead of $rs & $rt]
	-> li $rd imm_val
	-> syscall
	-> lw $reg var_name
	-> sw $reg var_name
	-> beq $rs $rt label
	-> j label