
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
Содержание Am186 Series
Страница 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Страница 10: ...Table of Contents x...
Страница 18: ...Programming 1 8...
Страница 40: ...Instruction Set Listing 3 14...