Skip to content

erenulas/mips-assembly-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mips Assembly Examples

QtSpim simulator is used to run these mips programs.

Example 1

It takes a string and a char as inputs, and counts the number of input char in the string.
An example for you to see how it works:
Example Run

Example 2

It computes the sum of N numbers such that each sum skips over certain numbers. In the code of example 2, there is a list of numbers which is indicated as 'numbers'. Assume your choice to skip number is 3, then this will find the summation of Number 1 + Number 4 + Number 7 ...
An example for you to see how it works:
Example Run

Example 3

It reads the elements of an array and prints the uppercase characters represented by the integers in the array. 0 represents space, and each integer from 1 to 26 corresponds to an uppercase letter in English alphabet.
An example for you to see how it works:
Example Run

Example 4

It determines the height of a binary tree. It takes the length and the elements of the array as inputs.
An example for you to see how it works:
Diagram
Example Run

How to Use It?

  • Clone the repo.
  • Open files with QtSpim and start the simulation!

About

Some examples written in mips assembly

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published