Epson S1C6200A Computer Hardware User Manual


 
Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:
Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:
MSB LSB
MSB LSB
C
Z
D
I
C
Z
D
I
40 EPSON S1C6200/6200A CORE CPU MANUAL
3 INSTRUCTION SET
FAN r,i Logical AND immediate data i with r-register for flag check
FAN r,i
r i
3 to i0
110110r1 r0 i3 i2 i1 i0 D80H to DBFH
II
7
Not affected
Set if the result is zero; otherwise, reset.
Not affected
Not affected
Performs a logical AND operation between immediate data i and the contents of
the r-register. Only the Z flag is affected. The r-register remains unchanged.
FAN A,7 FAN MY,9 FAN B,2
A register 1000 1000 1000 1000
B register 0100 0100 0100 0100
Memory (MY) 1000 1000 1000 1000
C flag 1 1 1 1
Z flag 0 1 0 1
FAN r,q Logical AND q-register with r-register for flag check
FAN r,q
r q
11110001r1 r0 q1 q0 F10H to F1FH
IV
7
Not affected
Set if the result is zero; otherwise, reset.
Not affected
Not affected
Performs a logical AND operation between the contents of the q-register and the
contents of the r-register. Only the Z flag is affected. The registers remains
unchanged.
FAN A,B FAN MX,B FAN A,MY
A register 1000 1000 1000 1000
B register 1010 1010 1010 1010
Memory (MX) 0101 0101 0101 0101
Memory (MY) 1110 1110 1110 1110
C flag 0 0 0 0
Z flag 0 0 1 0