Make your own free website on Tripod.com

OUT (C),r

Output register r to port C.
Function: (C) <- r
 
Format:
1110 1101
 
byte 1: ED
 
01rr r001
 
byte 2
 
Description: The contents of the specified register are output to the peripheral device addressed by the contents of the C register. r may be any one of;
A
111
B
000
C
001
D
010
E
011
H
100
L
101
Register C supplies bits A0 to A7 of the address bus. Register B supplies bits A8 to A15.
 
Data Flow:
 
Timing: 3 M cycles; 12 T states: 6 usec @ 2 MHz
 
Addressing Mode: external
 
Flags:
 
(no effect)
 
Byte Codes:
OUT  (C),r
r:ABCDEHL
ED +79414951596169
 
Example:
OUT  (C),B

OBJECT CODE
Before:
 
After: