

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Lab; Class: Principles of Computer Systems; Subject: Mathematics; University: Eastern Illinois University; Term: Unknown 1989;
Typology: Lab Reports
1 / 3
This page cannot be seen from the preview
Don't miss anything!
Refer to Chapter 5 of the textbook to obtain an overview of the LC-3 computer. To arrive prepared for the lab, complete each of the following activities. Refer to Figures 1 and 2 and the code listings shown in the appendix of this handout.
Mathematics 3670: Lab 8 2
Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 operation/data x3000 R1 = PC + 10 x3001 R2 = M[R1 + 0] x3002 R3 = M[R1 + 1] x3003 R4 = NOT(R3) x3004 R4 = R4 + 1 x3005 R5 = R2 + R x3006 BRzp x x3007 M[R1+2] = R x3008 BRnzp x300A x3009 M[R1+2] = R x300A TRAP x x300B x x300C x x300D xFFFF
Figure 1: The basic ingredients of an LC-3 program. Consult the documentation for the LC-3 ISA to fill in each of the missing bits.
PC operation R0 R1 R2 R3 R4 R5 R6 R7 n z p M[x300B] x3000 R1 = PC + 10 x
Figure 2: Predicting the execution of an LC-3 program.