Escolar Documentos
Profissional Documentos
Cultura Documentos
College of Engineering
Examination 1
Student ID
Question 1 20
Question 2 40
Question 3 40
Total 100
8. The instruation LDAX D loads the DE register pair with the contents
of the memory location pointed to by the HL register pair. T F
2
Question 2. (30 points)
An existing memory system has the memory map shown in Figure 1. Using only the following
chips, design the circuit needed to fill in the holes.
8K
RAM1
8K
RAM2 9FFFH
16 K
RAM 3
FFFFH
Figure 1
2.1. Determine the starting and ending addresses for each of the new memory chips.
(15 Points)
3
2.2. Determine the combinations needed for the chip select of the new memory chips.
(6 Points)
4
Question 3. (10 points)
Determine the memory map for the memory system shown in Figure 2.
A15
A14
G G2A G2B
1
A MSB
13
O6
A12
O2
74138
A11 A11
CE CE
4K 4K
RAM 1 RAM 2
A0 A0
Figure 2.
5
Question 4 (40 Points)
4.1 Given the memory contents shown below, execute the following program and show
the contents of the registers and the state of the flags after each instruction.
(20 Points)
4000 3F
4001 B3
4002 16
4003 24
ORG 2000H A B C H L Z S CY
LDA 4000H
LXI H 3F01H
INR H
MOV B M
XRA B
DCX H
DCX H
MVI C 21H
ADD C
CMA
4.2 Memory locations 4000H and 4001H have some data. Write a program to read the
data from location 4000H, switch the upper and lower nibbles (for example, 3A
becomes A3), then compare the result with the contents of location 4001H. If they are
equal, store the result of the switching in location 4002H. Otherwise, store 00H in
4002H. (20 Points)