Giter Site home page Giter Site logo

shojiyao12 / mips_calculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.8 MB

A basic MIPS-based Calculator, that would ask for an input from the user, then the program will convert that input into Postfix first and display it. Afterwards, assess the original input from the user and perform the following operations (based on what was inputted): Addition, Subtraction, Multiplication, Division. Then, output the result.

Assembly 100.00%
addition-substraction-multiplication-division calculator mars-ide mips mips-assembly mips-calculator postfix postfix-evaluation

mips_calculator's Introduction

Quickstart Guide

  1. Copy the Calculator.asm file from this repository.
  2. Open this file using an IDE, like MARS v.4.5, which is also found within this repository.
  3. Run the Calculator.asm file
    • The program should automatically prompt you to enter an expression (i.e. 5+5), then display what you entered (5+5), the postfix of that expression (5 5 +), and the final result (10).

Core Concept

  • Introduction to Computer Organization and Machine-level Programming
  • Introduction to Assembly Languages

Note:

This also included user-error protection in situations where the user would possibly input something that is invalid, and the system would return “Syntax Error” as a warning for the user.

Preview of MIPS-based Calculator Functionality

Sample of Lines of Code Showing Steps 1 Sample of Lines of Code Showing Steps 2 Sample of Lines of Code Showing Steps 3 Sample of Outputs from MIPS Calculator

mips_calculator's People

Contributors

shojiyao12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.