Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bl33h/squareperimeter
- Owner: bl33h
- Created: 2022-04-20T03:05:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-21T05:00:04.000Z (10 months ago)
- Last Synced: 2024-11-20T20:34:56.148Z (3 months ago)
- Topics: assembly, assembly-language, perimeter, raspberry-pi, raspi, square
- Language: Assembly
- Homepage:
- Size: 154 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
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
```