beautypg.com

Zilog Z8F0130 User Manual

Page 141

background image

eZ8

CPU Core

User Manual

UM012820-0810

CPC Instruction

126

CPC R15, @R10

Object Code: 1F A3 FA

If Register

34h

contains the value

2Eh

and Register

12h

contains the

value

1bh

, and the Carry Flag is 1, the following statement clears the C,

Z, S, and V flags:

CPC 34h,12h

Object Code: 1F A4 12 34

If Register

4Bh

contains the value

82h

, Working Register R3 contains the

value

10h

, Register

10h

contains the value

81h

, the Carry flag is 1, and

the Zero flag is 0, the following statement sets the Z flag, and clears the C,
S, and V flags:

CPC 4Bh, @R3

Object Code: 1F A5 E3 4B

If Register

6Ch

contains the value

2Ah

, the Carry flag is 0, and the Zero

flag is 1, the following statement clears the C, Z, S, and V flags:

CPC 6Ch, #2Ah

Object Code: 1F A6 6C 2A

If Register

D4h

contains the value

FCh

, Register

FCh

contains the value

8Fh

, and the Carry Flag is 0, the following statement sets the V flag, and

clears the C, Z, and S flags:

CPC @D4h, #FFh

Object Code: 1F A7 D4 FF