Instruction Set
4-5
AAD
AAD
This example uses AAD to convert a two-digit unpacked decimal number to its binary
equivalent.
Tips
The microcontroller can only divide unpacked decimal numbers. To divide packed decimal
numbers, unpack them first.
Related Instructions
If you want to
See
Divide an unsigned number by another unsigned number
DIV
UBCD
DW
0801h
; 81 unpacked BCD
; convert unpacked decimal number to binary
MOV
AX,UBCD
; AX = 0801h = 81 unpacked BCD
AAD
; AX = 0051h = 81
Summary of Contents for Am186 Series
Page 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Page 10: ...Table of Contents x...
Page 18: ...Programming 1 8...
Page 40: ...Instruction Set Listing 3 14...