Professional Documents
Culture Documents
Binary Lecture 3
Binary Lecture 3
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
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