beautypg.com

Zilog Z86193 User Manual

Page 181

background image

Z8

®

CPU

User Manual

UM001604-0108

Instruction Description

174

0011 1100 = 3Ch

Register

45F

contains the value

5Fh

, and the result of the addition is stored in Register

5Fh

, the statement:

DA @45h

Op Code: 40 45

adjusts this result so the correct BCD representation is obtained.

0011 1100 = 3Ch

0000 0110 = 06h

0100 0010 = 42h

Register

5Fh

now contains the value

42h

. The C, Z, and S Flags are cleared, and V is

undefined.