Skip to content

A MIPS program for the MARS simulator that plots polynomials

Notifications You must be signed in to change notification settings

JoaoLRezende/MIPS-plotter

Repository files navigation

To run on MARS:

  1. Open any of the project's source files.
  2. Enable the setting "Assemble all files in directory".
  3. Enable the setting "Initialize Program Counter to global 'main' if defined".
  4. Open the Bitmap Display tool.
  5. Configure the tool:
    Unit Width in Pixels:  2.
    Unit Height in Pixels: 2.
  6. Click on "Connect to MIPS".
  7. Assemble and run.

Some examples of polynomials:

  • x
  • 4x³ - 1x
  • x + 2x² + 3x³ + 4x⁴

Caret sequences can be used instead of superscript integers. For example, 2x^4 + x^3 is the same as 2x⁴ + x³.

Here's a demo.

About

A MIPS program for the MARS simulator that plots polynomials

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published