3 INSTRUCTION SET

ADC XH,i Add with carry immediate data i to XH

Source Format:

ADC XH,i

 

 

 

 

 

 

 

Operation:

XH XH + i3 to i0 + C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

0

1

0

0

0

0

0

i3

i2

i1

i0

 

A00H to A0FH

 

MSB

 

 

 

 

LSB

 

Type:

IV

 

 

 

 

 

 

 

Clock Cycles:

7

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Set if a carry is generated; otherwise, reset.

Z– Set if the result is zero; otherwise, reset. D – Not affected

I – Not affected

Description: Adds the carry bit and immediate data i to XH, the four high-order bits of XHL.

Example:

 

ADC XH,2

 

 

ADC XH,4

 

XH register

1001

 

1100

 

0000

 

C flag

1

 

0

 

1

 

Z flag

0

 

0

 

1

ADC XL,i Add with carry immediate data i to XL

Source Format:

ADC XL,i

 

 

 

 

 

 

 

Operation:

XL XL + i3 to i0 + C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

1

0

1

0

0

0

0

1

i3

i2

i1

i0

 

A10H to A1FH

 

MSB

 

 

 

 

LSB

 

Type:

IV

 

 

 

 

 

 

 

Clock Cycles:

7

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag:

C – Set if a carry is generated; otherwise, reset.

Z– Set if the result is zero; otherwise, reset. D – Not affected

I – Not affected

Description: Adds the carry bit and immediate data i to XL, the four low-order bits of XHL.

Example:

 

ADC XL,3

 

 

ADC XL,0EH

 

XL register

0000

 

0100

 

0010

 

C flag

1

 

0

 

1

 

Z flag

1

 

0

 

0

30

EPSON

S1C6200/6200A CORE CPU MANUAL