Flow Control Instructions
Objective of this lab:
To explore ARM branch instructions and implement them in ARM uVision5
Preparation
Read lab lecture notes.
Lab Assignment
Assignment#1:
Write an ARM assembly language program CountVowelsOne.s
to count how many vowels and how many non-vowels are in the following string.
"ARM assembly language is important to learn!",0
Recommendations for writing the program:
- Put the string in the memory by using DCB.
- Use R0 to hold the address of a character in the string.
- Use R1 to be the counter for vowels.
- Use R2 to be the counter for non-vowels.
- Build the program, debug if needed.
- Run the program step by step and see how values are changing in
the registers.
OR just run the program and see the final result in the register R1 and R2.
- Make a screenshot to capture the results in your designated registers.
You will hand in the following:
- The source code in the file CountVowelsOne.s
- The pdf file CountVowelsOne.pdf contains the following:
- The screenshot (print screen) to show the program has been successfully built
- The screenshot showing the number of vowels in R1 and non-vowels in R2
- The source code in the file CountVowelsOne.s
Copyright: Department of Computer Science, University of Regina.