I advise to use the AQA Assembly Language Simulator by Peter Higginson
Import my programs via the "LOAD" button and go!
And to better understand the commands, read this documentation
Sequence_Fibonacci.asm
Here 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.
Sequence_Adder.asm
Here 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)
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!