English
Language : 

Z86E3016PSG Datasheet, PDF (333/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 CPU
User Manual
315
leaves the value 05h in Working Register R15. The D Flag is set, and the
C, Z, S, V, and H flags are cleared.
Example
:If Register 34h contains 2Eh, the C Flag is set, and Register 12h con-
tains 1Bh, the statement:
SBC 34h, 12h
Op Code: 34 12 34
leaves the value 13h in Register 34h. The D Flag is set, and the C, Z, S, V,
and H flags are cleared.
Example
If Register 4Bh contains 82h, the C Flag is set, Working Register R3 con-
tains 10h, and Register 10h contains 01h, the statement:
SBC 4Bh, @R3
Op Code: 35 E3 4B
leaves the value 80h in Register 4Bh. The D Flag is set, and the C, Z, S, V,
and H flags are cleared.
Example
If Register 6Ch contains 2Ah, and the C Flag is not set, the statement:
SBC 6Ch, #03h
Op Code: 36 6C 03
leaves the value 27h in Register 6Ch. The D Flag is set, and the C, Z, S, V,
and H flags are cleared.
Example
If Register D4h contains 5Fh, Register 5Fh contains 4Ch, and the C Flag
is set, the statement:
SBC @D4h, #02h
Op Code: 37 D4 02
UM001602-0904
Instruction Description