Skip to content

NomadicLocust/ReducedMIPSAssembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reduced MIPS Assembler

This is a Java-based MIPS assembler with support for a reduced instruction set.

To assemble a file, run:

java ReducedMIPS filename [-d]

(-d sets debug mode)


The following instructions are supported:

R-Type

  • add $rd, $rs, $rt
  • sub $rd, $rs, $rt
  • and $rd, $rs, $rt
  • or $rd, $rs, $rt
  • nor $rd, $rs, $rt
  • slt $rd, $rs, $rt
  • sll $rd, $rt, shamt
  • srl $rd, $rt, shamt
  • jr $rs

I-Type

  • addi $rt, $rs, imm
  • andi $rt, $rs, imm
  • ori $rt, $rs, imm
  • beq $rs, $rt, offset
  • bne $rs, $rt, offset
  • lw $rt, offset($rs)
  • sw $rt, offset($rs)

J-Type

  • j target
  • jal target

About

Java-based MIPS assembler for reduced instruction set

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published