This repository is a collection of assembly language programs written for educational purposes, focusing on the fundamental concepts of Computer Organization and Architecture (COA).
These programs are written for the MIPS architecture and are designed to be run on the QtSpim simulator to demonstrate various computational and logical operations at a low level.
To run these programs, you will need the QtSpim simulator. You can download it from its official SourceForge repository.
- Open QtSpim: Launch the
QtSpimapplication. - Load File: Go to
File>Load File(orReinitialize and Load File) and select one of the.asmfiles from this repository (e.g.,add_sum.asm). - Run: Press the
Runbutton (often a green play icon) or pressF5to execute the program. - View Output: The program's output will appear in the
Consolewindow. You can also monitor the state of the registers and memory in the main QtSpim window.
This repository contains the following programs:
| File Name | Description |
|---|---|
README.md |
You are reading it. |
add_sum.asm |
Adds a series of numbers or calculates a sum. |
and_or.asm |
Demonstrates logical AND / OR operations. |
bgt.asm |
Implements a "Branch if Greater Than" conditional jump. |
branch.asm |
Demonstrates various branching and conditional logic. |
data.asm |
Contains examples of data declaration and storage. |
even.asm |
Checks if a given number is even or odd. |
even_count.asm |
Counts the total number of even numbers in a set. |
for.asm |
Implements a 'for' loop structure. |
for_add.asm |
Uses a 'for' loop to perform repeated addition. |
maximum.asm |
Finds the maximum value in a list of numbers. |
mill_info_data.asm |
Stores specific information or data; (purpose to be detailed). |
multiplication_table.asm |
Generates and displays a multiplication table. |
print.asm |
A utility to print characters or strings to the console. |
print_console.asm |
Demonstrates how to output text directly to the console. |
sum_user.asm |
Prompts the user for input and calculates the sum. |
text_1.asm |
An example of text or string manipulation. |
vote.asm |
A program to simulate a simple voting or counting mechanism. |
Contributions are welcome! If you have new programs, fixes, or improvements, please feel free to:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a Pull Request.