Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started