Skip to content

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.

Notifications You must be signed in to change notification settings

Shojiyao12/MIPS_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published