# mips_assembler_simulator

> Simple MIPS Simulator in JavaScript (Experimental) ==================================================

Latest version **2.6.0** (published 2017-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install mips_assembler_simulator
pnpm add mips_assembler_simulator
yarn add mips_assembler_simulator
bun add mips_assembler_simulator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.6.0 |
| Published | 2017-10-03 |
| First published | 2017-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jfmherokiller |
| Keywords | mips, typescript, assembler, simulator |

## Links

- npm: https://www.npmjs.com/package/mips_assembler_simulator
- Repository: https://github.com/jfmherokiller/SimpleMIPS.js
- Homepage: https://github.com/jfmherokiller/SimpleMIPS.js#readme
- Issues: https://github.com/jfmherokiller/SimpleMIPS.js/issues
- npm.io page: https://npm.io/package/mips_assembler_simulator

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.6.0 (latest) — 2017-10-03
- 2.4.0 — 2017-10-03
- 2.3.0 — 2017-10-02
- 2.2.0 — 2017-09-19
- 2.1.0 — 2017-09-19
- 2.0.0 — 2017-09-11
- 1.0.0 — 2017-09-11

## README

Simple MIPS Simulator in JavaScript (Experimental)
==================================================
<!---
This is an experimental project after taking the computer architecture course during my undergraduate study. Basically it provides a basic playground for MIPS assembly. However, only a limited set of instructions are available due to limited time:
-->
[![Build Status](https://travis-ci.org/jfmherokiller/SimpleMIPS.js.svg?branch=master)](https://travis-ci.org/jfmherokiller/SimpleMIPS.js)[![codecov](https://codecov.io/gh/jfmherokiller/SimpleMIPS.js/branch/master/graph/badge.svg)](https://codecov.io/gh/jfmherokiller/SimpleMIPS.js)

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
<!---
It should be noted that the detailed 5-stage pipeline implementation does not reflect any real MIPS processor. It is my own implantation for my course project, where the branching logic was put in the instruction decoding stage. The memory model is also ideal so there is no additional delay in the writeback stage.

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](http://jquery.com/) and [Normalize.css](http://necolas.github.io/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 :)**
-->

---
_Source: https://npm.io/package/mips_assembler_simulator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
