











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Addressing Modes
Addressing Modes (Cntd.) Base-plus-Index MOV [BX+DI], CL MOV DL, [BX+SI] MOV BL, [BP+SI] Register Relative MOV AX, [BX+2] MOV [BX+4], DH
8086 - 88 Machine Language Encoding
Endianness
A simple 2-byte instruction
Mode Field REG Field R/M Field Op-code Field (^) D W
Mode bits table
REG Field Bits
Example 1
Example 2
Instructions with MOD = 10
Byte No. 7 6 5 4 3 2 1 0 MS-Byte OP-CODE D W MOD REG R/M LOWER BYTE OF DISPLACEMENT ADDRESS HIGHER BYTE OF DISPLACEMENT ADDRESS LOWER DATA BYTE LS-Byte HIGHER DATA BYTE
Example 5
QUIZ Write an IBM-PC Assembly language Program that reads a two characters from keyboard and prints them to the monitor in reverse order. Example: