In the previous chapter we wrote a simple program that introduced a handful of Assembly language mnemonics and showed us how to assemble and link a program.
This introduction program was written in ARM Assembly language, ARM being the type of CPU architecture the Raspberry Pi 2 contains. Acorn RISC Machine (ARM) implements RISC, which stands for Reduced Instruction Set Computing. This results in a smaller optimized set of machine code, which in turn leads to a smaller but expressive Assembly language.
If you wish to understand the subject further you can read more about RISC on Wikipedia at https://en.wikipedia.org/wiki/Reduced_instruction_set_computing.
The next program we will write is very similar to that in the previous chapter, but slightly simpler.
Make sure you are logged into your Raspberry Pi over SSH or have a terminal window open in Raspbian.
Create a new file in your assem_programs
directory called second_assem_prog.s
.
Create the file as follows:
vim /home/pi/assem_programs...