Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer all the rollowing questions. This lab is to be done in groups. This lab consists of two pages. In general, labs in this course

Answer all the rollowing questions.
This lab is to be done in groups.
This lab consists of two pages.
In general, labs in this course are opportunities to experiment, test and learn new things.
This lab is based on Exercise 6.22 in the textbook.
The use of the LC-3 simulator has been explained in the class. However, if you need a reminder about it, you can refer to the document attached to this lep. You can ignore anything related to assembly language at this point. We are only working on machine language in this lab.
A warehouse is controlled by an electronic lock having an n-digit combination. The electronic lock has ten buttons labeled 0 to 9 on its face. To open the lock, a user presses a sequence of n buttons. The corresponding ASCII characters get loaded into sequential locations of memory, starting at location x3150. After n buttons have been pressed, the null character x00 is loaded into the next sequential memory location.
The following program determines whether or not the lock should open, depending on whether the combination entered agrees with the combination stored in the n memory locations starting at x3100. If the lock should open, the program stores a 1 in location 3050. If the lock should not open, the program stores a 0 in location 3050.
Note that some of the instructions are missing.
\table[[3000,01011011011000001,],[x3001,0010000000001111,R5-x00001000
image text in transcribed

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

Students also viewed these Databases questions

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago