- Information
- AI Chat
Was this document helpful?
Lecture 22
Course: Microprocessors and Peripheral Devices (EEN-204)
109 Documents
Students shared 109 documents in this course
University: Indian Institute of Technology Roorkee
Was this document helpful?
Lecture-22:
9. LHLD ADDR: This is an ALP statement. LHLD is the mnemonic
for LOAD (H,L) REGISTER PAIR DIRECT. The meaning of the
instruction is <Load the content of the memory location whose
address is directly available as 2nd & 3rd byte of the instruction to
register L and the content of the memory location at next higher
address to the register H=. This is a 3-byte instruction. The instruction
format is
0
0
1
0
1
0
1
0
N
<B2>
N+1
<B3>
N+2
The macro RTL implemented is
(L) M(B3, B2)
(H) M((B3, B2) + 1)
This instruction has no variation. The addressing mode is direct
addressing mode. The micro RTL flow is:
Machine Cycle- 1:
OFMC: Status signals IO/M
=0, S1=1, S0=1
T1: A15-A8 (PCH), AD7-AD0 (PCL), ALE =
T2: RD
= 0, (PC) (PC) +1, AD7-AD0 M(AB)
T3: RD
= 1, , (IR) AD7-AD0
T4: �㔇�㕝 decodes the opcode. LHLD addr = 1.