An open API service indexing awesome lists of open source software.

https://github.com/naganandana-n/computer-architecture

Computer Architecture coursework at BITS, Pilani.
https://github.com/naganandana-n/computer-architecture

assembly

Last synced: 9 days ago
JSON representation

Computer Architecture coursework at BITS, Pilani.

Awesome Lists containing this project

README

          

# Computer Architecture Lab

## Note:

1. For a reference to the MIPS Instruction Set, you can refer to [MIPS INSTRUCTION SET.pdf](https://github.com/naganandana-n/Computer_Architecture/blob/main/MIPS%20INSTRUCTION%20SET.pdf).

2. The detailed, full questions of each lab are included in the files.

3. Run MIPS program's here: [WEBSITE - UPLOAD FILE AND RUN](https://shawnzhong.github.io/JsSpim/). Credit to [Shawn Zhong](https://github.com/shawnzhong) for the compiler (website).

## LAB 1:

- [Q1: Program to print an integer](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%201/LAB1%20Q1.s)
- [Q2: Program to read an integer and display to console](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%201/LAB1%20Q2.s)

## LAB 2:

- [Q1: Program to add two numbers](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%202/LAB2%20Q1.s)
- [Q2: Program to calculate sum of first n numbers and display to console](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%202/LAB2%20Q2.s)
- [Q3: Program to take n input and calculate its factorial](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%202/LAB2%20Q3.s)
- [Q4: Program to read a string and display to console](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%202/LAB2%20Q4.s)

## LAB 3:

- [Q1: To read a number N from input and find if the number is odd or even. Display the result to the user.](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%203/LAB3%20Q1.s)
- [Q2: Program to find sum of digits of n input](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%203/LAB3%20Q2.s)
- [Q3: Program to evaluate given arithmetic expression](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%203/LAB3%20Q3.s)

## LAB 4:

- [Q1: Program to iterate through an array and display its contents](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%204/LAB4%20Q1.s)
- [Q2: Program to implement linear search](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%204/LAB4%20Q2.s)
- [Q3: Program to take two arrays, add their elements and store in third array](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%204/LAB4%20Q3.s)

## LAB 5:

- [Q1: Program to find largest and smallest elements in an array and display to console](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%205/LAB5%20Q1.s)
- [Q2: Program to add elements of an array and display sum to console](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%205/LAB5%20Q2.s)
- [Q3: Sum the even numbers and odd numbers in a word array A and display the result to the user](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%205/LAB5%20Q3.s)

## LAB 6:

- [Q1: Program to find length of string in memory and display to console](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%206/LAB6%20Q1.s)
- [Q2: Program to reverse a string and display to memory](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%206/LAB6%20Q2.s)
- [Q3: Program to check whether given string is a palindrome or not](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%206/LAB6%20Q3.s)
- [Q4: Program to concatenate two given strings and display result](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%206/LAB6%20Q4.s)

## LAB 7:

- [Q1: Program to add, subtract, multiply and divide two numbers using procedures](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%207/LAB7%20Q1.s)
- [Q2: Program to implement linear search using procedures](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%207/LAB7%20Q2.s)
- [Q3: Program to print Fibonacci series using procedures](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%207/LAB7%20Q3.s)

## LAB 8:

- [Q1: Program to implement binary search recursively](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%208/LAB8%20Q1.s)
- [Q2: Program to find power of a number using recursion](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%208/LAB8%20Q2.s)
- [Q3: Program to calculate sum of first n natural numbers using recursion](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%208/LAB8%20Q3.s)

## LAB 9:

- [Q1: Program to print float and double variables in memory](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%209/LAB9%20Q1.s)
- [Q2: Program to take input of float and double values and print](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%209/LAB9%20Q2.s)
- [Q3: Program to take radius input and calculate area of circle and display in single precision floating-point](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%209/LAB9%20Q3.s)
- [Q4: Program to convert Fahrenheit to Celsius using double precision floating-point values](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%209/LAB9%20Q4.s)
- [Q5: Program to calculate ax^2+bx+c with user-input x in single precision floating-point](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%209/LAB9%20Q5.s)
- [Q6: Find the sum of an array of single precision floating point values stored in memory](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%209/LAB9%20Q6.s)

## LAB 10:

- [Q1: Program to add two complex numbers represented using single precision floating-point values](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%2010/LAB10%20Q1.s)
- [Q2: Compute the average of a list of 5 integer numbers stored in memory and print the result to the user](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%2010/LAB10%20Q2.s)
- [Q3: Program to compare two floating-point numbers](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%2010/LAB10%20Q3.s)
- [Q4: Program to input electricity units used and calculate total bill](https://github.com/naganandana-n/Computer-Architecture/blob/main/LAB%2010/LAB10%20Q4.s)