Question: Consider the program below that gets following keyboard input computer. .ORIG x3000 AND R1, R1, #0 ADD R1, R1, #8 LD R2, NEGZ LOOP1

Consider the program below that gets following keyboard input

Consider the program below that gets following keyboard input "computer". .ORIG x3000 AND R1, R1, #0 ADD R1, R1, #8 LD R2, NEGZ LOOP1 LDI R3, KBSR BRzp LOOP1 LDI Re, KBDR ADD R4, RO, R2 BRnz NEXT LOOP2 LDI R5, DSR BRzp LOOP2 STI Re, DDR NEXT ADD R1, R1, #-1 BRp LOOP1 HALT NEGZ .FILL XFFA6 KBSR .FILL XFEBB KBDR FILL xFE02 negation of '2' Keyboard status register address Keyboard data register address DSR DDR .FILL .FILL XFE04 XFE06 ;Display status register address ;Display data register address .END Carefully trace the execution of the code above to answer these questions: A. What is the first character that this program displays? [Select] B. What is the second character that this program displays? [Select] C. What is the third character that this program displays? [Select] D. Does the program display any more of the inputted characters? [Select] E. Which best indicates the kind of input used? [Select] F. Which best indicates the kind of output used? [Select]

Step by Step Solution

3.51 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To answer these questions we need to understand how the program processes the input coMpUTer and wha... 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 Programming Questions!