Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A particular type of keyboard, instead of keyboard status register (KBSR) and keyboard data register (KBDR), has only one register called keyboard status-data register (KBSDR).

A particular type of keyboard, instead of keyboard status register (KBSR) and keyboard data register (KBDR), has only one register called keyboard status-data register (KBSDR). Bit [15] of KBSDR is ready bit and the ASCII code of the input character is placed in bits [7:0] of KBSDR. Assume the KBSDR is mapped to address xFE00 of the LC-3s memory space. Rewrite the following polling-based keyboard echo routine for this keyboard.

POLL1 LDI R0, KBSRPtr

BRzp POLL1

LDI R0, KBDRPt

POLL2 LDI R1, DSRPtr

BRzp POLL2

STI R0, DDRPtr

...

KBSRPtr .FILL xFE00

KBDRPtr .FILL xFE02

DSRPtr .FILL xFE04

DDRPtr .FILL xFE06

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions