https://github.com/4strium/arm-assembly
ARM assembly programs that perform simple tasks.
https://github.com/4strium/arm-assembly
arm assembly fibonnaci loops sequence
Last synced: about 1 year ago
JSON representation
ARM assembly programs that perform simple tasks.
- Host: GitHub
- URL: https://github.com/4strium/arm-assembly
- Owner: 4strium
- License: mit
- Created: 2022-03-12T18:04:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T16:59:44.000Z (about 4 years ago)
- Last Synced: 2025-04-01T18:54:19.460Z (about 1 year ago)
- Topics: arm, assembly, fibonnaci, loops, sequence
- Language: Assembly
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ARM Assembly
- [Arm Assembly](https://github.com/4strium/ARM-Assembly#arm-assembly)
- [Viewing and Use](https://github.com/4strium/ARM-Assembly#viewing-and-use)
- [Fibonnaci Sequence](https://github.com/4strium/ARM-Assembly#fibonnaci-sequence)
- [Adder Sequence](https://github.com/4strium/ARM-Assembly#adder-sequence)
## Viewing and Use
I advise to use the [AQA Assembly Language Simulator by Peter Higginson](https://www.peterhigginson.co.uk/AQA/)
Import my programs via the "LOAD" button and go!
And to better understand the commands, read this [documentation](https://www.peterhigginson.co.uk/AQA/info.html)
## [Fibonnaci Sequence](https://github.com/4strium/ARM-Assembly/blob/main/Sequence_Fibonacci.asm)
```sh
Sequence_Fibonacci.asm
```
[Here](https://bit.ly/3LO3lgW) is a pdf report of the code (in French)
- Program that calculates the sequence of "n" numbers (given in input) of the Fibonacci sequence by saving them from memory address 100.
- Registers R0, R1 and R2 are the registers used for the calculations of the sequence and whose results are directly stored in the memory by the command “STR”.
- Register R3 is the memory address counter, it starts at address 102 because there are first 0 and 1 which are the starting values of the registers.
## [Adder Sequence](https://github.com/4strium/ARM-Assembly/blob/main/Sequence_Adder.asm)
```sh
Sequence_Adder.asm
```
[Here](https://bit.ly/3DRLQJY) is a complete report in pdf of the code (in French).
- Program that calculate the sum of the first n integers (1+2+3+4+5+...+n)
## License
MIT License
Copyright (c) 2022 Romain M.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
**Enjoy!**