
eZ8
™
CPU Core
User Manual
UM012820-0810 SUB Instruction
234
SUB R15, @R10
Object Code: 23 FA
The D flag is set, and the C, Z, S, V, and H flags are cleared.
If Register 34h contains the value 2Eh, and Register 12h contains the
value
1bh, the following statement leaves the value 13h in Register 34h,
sets the D flag, and clears the C, Z, S, V, and H flags are cleared:
SUB
34h
,
12h
Object Code: 24 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 leaves the value 81h in Register 4Bh, sets the D and S flags and
clears the C, Z, V, and H flags are cleared:
SUB
4Bh
, @R3
Object Code: 25 E3 4B
If Register 6Ch contains the value 2Ah, the following statement leaves the
value
27h in Register 6Ch, sets the D flag, and clears the C, Z, S, V, and H
flags are cleared:
SUB
6Ch
, #03h
Object Code: 26 6C 03
If Register D4h contains the value 5Fh, Register 5Fh contains the value
4Ch, the following statement leaves the value 4Ah in Register 5Fh, sets
the D flag, and clears the C, Z, S, V, and H flags:
SUB @
D4h
, #02h
Object Code: 27 D4 02
Comentarios a estos manuales