Professional Documents
Culture Documents
Lecture-07
Maham Fatima
mahamfatima@cuisahiwal.edu.pk
[ Topics Covered ]
• Assembly language instruction break down
• Addressing Modes
1. Register
2. Immediate
3. Direct
4. Register Indirect
5. Base-Plus-Index
6. Register Relative
7. Base Relative-Plus-Index
1.2
• An Instruction manipulates the stored data.
1.4
[ Addressing Modes ]
1.5
[ Addressing Modes ]
For example,
Add AX, 25 ;( AXAX+25 )
1.6
[ Addressing Modes ]
1.7
[ Addressing Modes ]
1.8
[ Addressing Modes ]
4. Register Indirect Addressing allows data to be addressed at
any memory location through an offset address held in any
of the following registers: BX, BP, SI and DI.
1.9
[ Addressing Modes ]
1.10
[ Addressing Modes ]
i. In Auto-Increment,
first the contents of the specified CPU register are used as
the address of the operand,
and then data transfer takes place,
then register contents are incremented automatically by
some constant. For example,
MOV [DI]+, [SI] ;[DI] [SI]
1.11
[ Addressing Modes ]
ii. In Auto-Decrement,
first contents are decremented
then it is used as the address of the operand.
For example,
CLR –[CX]
1.12
[ Addressing Modes ]
1.13
[ Addressing Modes ]
1.14
[ Addressing Modes ]
1.15
[ Addressing Modes ]
1.17
[ Addressing Modes ]
1.18
[ Addressing Modes ]
1.19
1.20