Question: Write an ARMv7 assembly program that reads a set of binary coded decimals and produces a string representing the encoded digits. (a) Below is a
Write an ARMv7 assembly program that reads a set of binary coded decimals and produces a string representing the encoded digits. (a) Below is a file, hw10-data.txt, that contains the string you will store in your program to create the data. (b) You will store the string as you would any string, but treat each byte as two binary coded decimals. The string consists of 8 characters, which together represent 16 binary coded decimals. This program is not about strings. The point of using a string here is to get the correct bit patterns into memory. (c) With regard to our data, we know the following and can hard-code it in the program: the data to use the number of characters in the string the amount of space needed to store the output string (this should be 16) Nothing else in your logic should be hard-coded to your data. (d) You should store the digit characters together to produce a single string that you will print at the end. Do not print each digit as you determine what it is. (e) After printing the string, print a single newline.
here is the string:
.asciz "aqi$pd8U"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
