[go: up one dir, main page]

Skip to content

amir734jj/mips-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mips-simulator

MIPS simulator in C#

Features:

  • Parser combinator using FParsec
  • Basic instruction set including integer arithmetic, branch, jump
  • Stack support

factorial MIPS

Specifications:

  • supported system calls: 1, 4, 5, 10
  • supported directives:
    • .ascii
    • .asciiz
    • .text
    • .data
    • .word
  • supported instructions:
    • add
    • addi
    • sub
    • mul
    • div
    • b
    • beq
    • bne
    • blt
    • ble
    • bgt
    • bge
    • beqz
    • bneq
    • blez
    • bgez
    • sll
    • srl
    • j
    • jr
    • jal
    • lw
    • sw
    • move
    • li
    • la

TODO:

  • static memory support
  • semantic analysis
  • pretty printer
  • floating point support

Notes:

  • I included a factorial MIPS example so demonstrate the recursion support thanks to stack

About

Attempting to simulate MIPS in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published