Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

To answer these questions we need to understand how the program processes the input coMpUTer and wha... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# How to Program

Authors: Paul J. Deitel, Harvey Deitel

6th edition

134601548, 134601793, 978-0134601540

More Books

Students also viewed these Programming questions