Skip to content

Repository files navigation

Assembly Language Programs for COA

Language

Description

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.

Software Requirement

To run these programs, you will need the QtSpim simulator. You can download it from its official SourceForge repository.

How to Run

  1. Open QtSpim: Launch the QtSpim application.
  2. Load File: Go to File > Load File (or Reinitialize and Load File) and select one of the .asm files from this repository (e.g., add_sum.asm).
  3. Run: Press the Run button (often a green play icon) or press F5 to execute the program.
  4. View Output: The program's output will appear in the Console window. You can also monitor the state of the registers and memory in the main QtSpim window.

Program List

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.

Contributing

Contributions are welcome! If you have new programs, fixes, or improvements, please feel free to:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a Pull Request.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages