beautypg.com

Zilog Z8F0130 User Manual

Page 91

background image

eZ8

CPU Core

User Manual

UM012820-0810

ADC Instruction

76

Example 6

If Register

6Ch

contains the value

2Ah

, and the Carry flag is not set, the

following statement leaves the value

2Dh

in Register

6Ch

and clears the

C, Z, S, V, D, and H flags:

ADC 6Ch, #03h

Object Code: 16 6C 03

Example 7

If Register

D4h

contains the value

5Fh

, Register

5Fh

contains the value

4Ch

, and the Carry flag is set, the following statement leaves the value

4Fh

in Register

5Fh

and clears the C, Z, S, V, D, and H flags:

ADC @D4h, #02h

Object Code: 17 D4 02