3 INSTRUCTION SET

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

Source Format:

ADC YH,i

 

 

 

 

 

 

Operation:

YH YH + i3 to i0 + C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

0

1

0

0

0

1

0

i3

i2

i1

i0

A20H to A2FH

 

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 YH, the four high-order bits of YHL.

Example:

 

ADC YH,3

 

 

ADC YH,6

 

YH register

1010

 

1110

 

0100

 

C flag

1

 

0

 

1

 

Z flag

0

 

0

 

0

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

Source Format:

ADC YL,i

 

 

 

 

 

 

Operation:

YL YL + i3 to i0 + C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OP-Code:

 

1

0

1

0

0

0

1

1

i3

i2

i1

i0

A30H to A3FH

 

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 YL, the four low-order bits of YHL.

Example:

 

ADC YL,3

 

 

ADC YL,2

 

YL register

1010

 

1110

 

0000

 

C flag

1

 

0

 

1

 

Z flag

0

 

0

 

1

S1C6200/6200A CORE CPU MANUAL

EPSON

31