Make your own free website on Tripod.com

LD r,n

Load register r with immmediate data n.
Function: r <- n
 
Format:
00rr r110
 
byte 1
 
nnnn nnnn
 
byte 2: immediate data
 
Description: The contents of the memory location immediately following the opcode location are loaded into the specified register. r may be any one of:
A
111
B
000
C
001
D
010
E
011
H
100
L
101

 
Data Flow:
 
Timing: 2 M cycles; 7 T states: 3.5 usec @ 2 MHz
 
Addressing Mode: immediate
 
Byte Codes:
LD   r,n
r:ABCDEHL
3E060E161E262E
 
Flags:
 
(no effect)
 
Example:
LD   C,3B

OBJECT CODE
Before:
 
After: