English
Language : 

Z86E3016PSG Datasheet, PDF (330/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 Family of Microcontrollers
User Manual
312
Example
If Register 4Bh contains 82h, Working Register R3 contains 10h, and
Register 10h contains 01h, the statement:
SUB 4Bh, @R3
Op Code: 25 E3 4B
leaves the value 81h 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, the statement:
SUB 6Ch, #03h
Op Code: 26 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, the statement:
SUB @D4h, #02h
Op Code: 17 D4 02
leaves the value 4Ah in Register 5Fh. The D Flag is set, and the C, Z, S, V,
and H flags are cleared.
Instruction Description
UM001602-0904