Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bl33h/squareperimeter

A program that calculates the value of the perimeter of 3 squares.
https://github.com/bl33h/squareperimeter

assembly assembly-language perimeter raspberry-pi raspi square

Last synced: 14 days ago
JSON representation

A program that calculates the value of the perimeter of 3 squares.

Awesome Lists containing this project

README

        

# squarePerimeter
A program that calculates the perimeter of a square based on user input. It uses the formula x = l * 4, where x is the perimeter and l is the length of the square's side. The program prompts the user to enter the side length, performs the calculation, and displays the result. It supports multiple calculations through a loop and returns a no-error signal to the operating system.




pic




Files
Features
How To Use

## Files
- src: the file that implements de solution.
- others: algorithm flowchart

## Features
The main features of the application include:
- User Input: It prompts the user to enter the value of the side length of the square.
- Calculation: It calculates the perimeter of the square using the formula x = l * 4, where x is the perimeter and l is the side length.
- Looping: It allows multiple calculations by repeating the calculation process until a certain condition is met.
- Output: It displays the calculated perimeter value to the user.
- Error Handling: It returns a no-error signal to the operating system upon completion.
- Assembly Language: It is written in assembly language, specifically targeting a specific architecture.

## How To Use
To clone and run this application, you'll need [Git](https://git-scm.com) and a [x86 emulator or simulator](https://www.qemu.org/) installed on your computer. Or a RaspberryPi in case you have one. From your command line:

```bash
# Clone this repository
$ git clone https://github.com/bl33h/squarePerimeter

# Open the folder
$ cd src

# Assemble the app
$ as -o CalculoPerimetroCuadrados.o CalculoPerimetroCuadrados.s
$ ld -o CalculoPerimetroCuadrados CalculoPerimetroCuadrados.o

# Run the app
$ ./CalculoPerimetroCuadrados
```