Question: Using ARM assembly code create the following programs. EE 3752 Fall 2017 Lab Experiment 6 Tuesday lab sections: report and code due Mon, Oct 16
EE 3752 Fall 2017 Lab Experiment 6 Tuesday lab sections: report and code due Mon, Oct 16 by 11:55 pm Thursday lab sections: report and code due Wed, Oct 18 by 11:55 pm Intro: The purpose of this lab experiment is to practice string manipulation through memory accesses, as well as conditional instruction execution and understanding of ASCII characters Experiment 1 (20 points) Write a program that compares two ASCIl strings of letters and spaces from memory. In the first string, all letters are uppercase. The second string matches the first if it has the same letters in the same order regardless of capitalization, and spaces in the same locations. Example: The strings "ARM PROCESSOR and "aRM pROceSsor" match. Make sure the input strings are null-terminated (that is, end with a 0 byte). Note that matching strings must be the same length. If the strings match, then place 1 in rO; otherwise, place 2 in rO. 1) (30 points) Given an ASCII string of exactly 4 decimal digits (O-'9), convert the decimal number that it represents into its binary equivalent. For example, convert input string "03250x30, 0x33, 0x32, 0x35) to binary 101000101 (-0x145). Read the input from memory, and store the output to memory. The ASCII string will be null-terminated, and the program should end when the end of the string is reached. To convert decimal digits (held as binary values) to a binary equivalent using binary multiplication and binary addition, observe that: 0325 = 0*1000 + 3.100 + 2*10 + 5 and also that: 325 ((0*10)+3) 10) 2)*10+5 by Horner's rule. You will be given test strings during lab time, for which your program should work in order to receive full credit Lab experiment: 50 points Lab report: 50 points Total: 100 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
