
2-10
x86 MICROPROCESSORS
Example 2.7 is a listing and it shows various assembly language instructions that use
imme diate addressing. Only 8-bit data can be placed into an 8-bit register. AL, DL and
DH are 8-bit registers.16-bit data can be copied to 16-bit registers. Though in the editor,
the second instruction was written as MOV AL, ‘C’, the assembler translates ASCII ‘C’
to its hex equivalent 43H. All data written in memory will be in the hex format (i.e., the
compressed form of binary representation). Thus, the decimal 45 is found to 2DH in the
listing.
Note A data (byte, word or longer) starting with the hex characters A, B, C, D, E ...