Instruction Set
4-170
OR
OR
Examples
This example converts an unpacked decimal digit to its ASCII equivalent.
Tips
To convert an unpacked decimal digit to its ASCII equivalent, use OR to add 30h (ASCII 0)
to the digit.
Related Instructions
If you want to
See
Clear particular bits of a component to 0
AND
Toggle all bits of a component
NOT
Toggle particular bits of a component
XOR
ASCII_MASK
EQU
30h
; decimal-to-ASCII mask
BCD_NUM
DB
06h
; 6
; convert decimal number to ASCII
MOV
AL,BCD_NUM
; AL = 06h = 6
OR
AL,ASCII_MASK
; AL = 36h = ASCII ’6’
Содержание 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...