daa
Decimal adjust A
Adjusts A after a BCD addition or subtraction so that each nibble holds a decimal digit.
1 byte · 4 cycles
SZHP/VNC ●●●●–●
- ● set from the result
- – not changed
Forms
daaAdjusts A for BCD addition and subtraction operations.
.org 0x8000
ld a, 5
daa
halt