Flow Control Instructions
Objective of this lab:
To explore ARM branch instructions and implement them in ARM uVision5
Read lab lecture notes.
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
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 print out of the screen shot (print screen) to show the program has been successfully built
- The print out of the screen shot showing the number of vowels in R1 and non-vowels in R2.
Copyright: Department of Computer Science, University of Regina.