• MOVS / MOVSB / MOVSW
• CMPS / CMPSB / CMPSW
• SCAS / SCASB / SCASW
• LODS / LODSB / LODSW
• STOS / STOSB / STOSW
ADDRESSING MODES:
1. Addressing modes for accessing immediate and register data.
2. Addressing modes for accessing data in memory.
3. Addressing modes for accessing I/O ports.
4. Relative Addressing mode.
5. Implied Addressing mode.
(1). Addressing modes for accessing immediate and register data:
(i) Register addressing mode: The registers, which is having the data to be operated is specified in the instruction.
• The IP content is, [IP]new = [IP]old + 000AH.
• The effective address is, [EA] = [IP]new + 000AH.
• The base address is, BA = [CS] x 1610
• The memory address is, MA = [EA] + [BA].
• Program control jump into the new MA.
(5) Implied Addressing:
• The instruction itself is having the data to be operated.
• Eg. : CLC – It clears the carry flag.
No comments:
Post a Comment