Question: (10 points) We have developed a routine to input from the keyboard 10 decimal digits, convert their ASCII codes into their binary representations, and store

(10 points) We have developed a routine to input from the keyboard 10 decimal digits, convert their ASCII codes into their binary representations, and store the binary values in 10 successive memory locations, starting at the address Binary. What's wrong with this routine? LEA LD LD R3, Binary R6, ASCII R7, COUNT ; char->digit template ; initialize to 10 ; Get char AGAIN TRAP x2:3 ADD Re, Re, R6 STR R0, R3, #0 ADD R3, R3, #1 convert to number ; store number ; incr pointer R7, R7, -1decr counter BRp AGAIN BRnzp NEXT i more? ; Negative of x0030 ASCII .FILL XFFDe COUNT FILL #10 Binary .BLKI #10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
