2.6.0 • Published 7 years ago
mips_assembler_simulator v2.6.0
Simple MIPS Simulator in JavaScript (Experimental)
List of Currently Implemented instructions:
- Memory access: lb, lbu, lh, lhu, lui, lw, sb, sh, sw, mfhi, mflo, mthi, mtlo
- Arithmetic operations: addi, addiu, add, addu, sub, subu, slt, slti, sltu, sltiu, mult, multu, div, divu
- Logical operations: and, andi, or, ori, xor, xori, nor, sll, sllv, srl, sra, srlv, srav
- Jump: j, jr,jal,
- Conditional branch: beq, bne, blez, bgtz, bltz, bgez,bltzal,bgezal
- Misc/Pseudo instructions: nop, break, print prints, printm,b,la,popr,pushr,li
I have implemented both the functional simulator and the pipeline simulator, both of which can be found in SimpleMIPS.js. A mini-assembler is also included. While the basic "to upper case" program works well, it is not guaranteed to be bug-free (probably lots of bugs). jQuery and Normalize.css was used when implementing the interface.
IMPORTANT: Unfortunately, since I no longer work in this area, I will no longer maintain this project (so please no pull request). I released it here for anyone interested. Feel free to check the code and modify it as you wish. Have fun :) -->