You are on page 1of 11

Addressing Modes

Addressing Modes
Instruction=Operation Code(OP-Code)+ Operand
Different Instruction Types

Data Transfer
MOV

Instruction Operation
MOV AX,BX Copy the contents of BX
into AX
MOV CX,DX Copy the contents of DX
into CX
MOV AL,BL Copy the contents of BL
into AL
MOV AL, [5E3F] Copy the contents of
memory location[5E3F]
into AL
Example

Example
Shift Instruction

Rotate Instruction

ROL: Rotate Left


ROR : Rotate Right
If the port address is composed of two bytes, the port address must be saved in
register DX

Example

Ex: Read Data from port 3AE0 ,add it to data in BL , then write the results to port
12H
MOV DX,3AE0
IN AL,DX
ADD AL,BL
OUT 12H,AL

You might also like