Zilog Z8F0130 User Manual

Page 147

Advertising
background image

eZ8

CPU Core

User Manual

UM012820-0810

DA Instruction

132

Flags

Table 24. Operation of the DAA Instruction

Instruction

Carry

Before DA

Bits 7–4

Value

(Hex)

H Flag

Before DA

Bits 3–0

Value

(Hex)

Number

Added To

Byte

Carry

After DA

ADD\ADC

0

0-9

0

0-9

00

0

0

0-8

0

A-F

06

0

0

0-9

1

0-3

06

0

0

A-F

0

0-9

60

1

0

9-F

0

A-F

66

1

0

A-F

1

0-3

66

1

1

0-2

0

0-9

60

1

1

0-2

0

A-F

66

1

1

0-3

1

0-3

66

1

SUB\SBC

0

0-9

0

0-9

00

0

0

0-8

1

6-F

FA

0

1

7-F

0

0-9

A0

1

1

6-F

1

6-F

9A

1

C

Set if there is a carry from bit 7; reset otherwise

Z

Set if the result is zero; reset otherwise

S

Set if Bit 7 of the result is set; reset otherwise

V

Undefined

D

Unaffected

H

Unaffected

Advertising