
eZ8
™
CPU Core
User Manual
UM012820-0810 CP Instruction
123
CP
34h
,
12h
Object Code: A4 12 34
If Register 4Bh contains the value 82h, Working Register R3 contains the
value
10h, and Register 10h contains the value 01h, the following state-
ment sets the S flag, and clears the C, Z, and V flags:
CP
4Bh
, @R3
Object Code: A5 E3 4B
If Register 6Ch contains the value 2Ah, the following statement sets the Z
flag, and clears the C, S, and V flags:
CP
6Ch
, #2Ah
Object Code: A6 6C 2A
If Register D4h contains the value FCh, and Register FCh contains the
value
8Fh, the following statement sets the V flag, and clears the C, Z,
and S flags:
CP @
D4h
, #FFh
Object Code: A7 D4 FF
Kommentare zu diesen Handbüchern