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

(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

1 Expert Approved Answer
Step: 1 Unlock 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!