Explain direct, indirect and register addressing modes with examples.


Register addressing mode: It means that the register is the source of an operand for an instruction
Example: MOV CX, AX ;copies the contents of the 16-bit AX register into  ;the 16-bit CX register),
ADD BX, AX
Direct addressing mode: The addressing mode in which the effective address of the memory location is written directly in the instruction.
Example: MOV AX [1592 H] MOV AL [0300 H]
Register indirect addressing mode: This addressing mode allows data to be addressed at any memory location through an offset address held in any of the following registers: BP, BX, DI & SI.
Example: MOV AX, [BX] ;Suppose the register BX contains 4895 H, then the contents ;4895H are moved to AX

ADD CX, {BX} 

No comments

Dear Members, Thanks for Your Comments. We must be reply your comment answer as soon as possible. Please Stay with us.....

Theme images by ideabug. Powered by Blogger.