Question: If someone could help me with this assignment I would really appreciate it! This is in ARM assembly language. Comments is much appreciated! Thanks! ....Verizon

If someone could help me with this assignment I would really appreciate it! This is in ARM assembly language. Comments is much appreciated! Thanks!  If someone could help me with this assignment I would really
appreciate it! This is in ARM assembly language. Comments is much appreciated!

....Verizon 9:55 AM 99% In this assignment you will write code to convert a string of 1's and 0's (a binary number represented as a string) and convert it to decimal. Your binary number (string) will always be exactly 8 digits long (a one byte binary number.) That is, the string will be 8 characters long (no trailing 0) Essentially you will write a loop that runs 8 times. Let currentpow be the current power of two you will add to your result. Initialize currentpow to 128. Each time through the loop you will look at one character in the string. If that character is a 0, you will do nothing. If that character is a 1, you must add currentpow to your result. At the end of your loop you should divide currentpow by 2 Some skeletal code is provided for you. You should initialize all of your values (loop counter, currentpow, result) between main and _loop. Between _loop and _print is your loop body where the work will be done When your loop is done the result value (that you want to print) must be in R4. Don't mess with parts of the code I give you, except to change the string stored in input to test different binary numbers in your program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a possible solution for the assignment in ARM assembly language Well go step by step Step 1 In... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!