IA-32 Assembly Language Reference Manual

Decimal Adjust AL after Addition (daa)

daa
Operation

decimal-adjust AL -> AL

Description

Use daa only after executing the form of an add instruction that stores a two-BCD-digit byte result in the AL register. daa then adjusts AL to a two-digit packed decimal result.

Example

Decimal adjust the two-BCD-digit in the AL register:

daa