Register Indirect addressing mode: In this mode, instruction specifies a register containing an address, where data is located.All the registers except IP may be used in this mode. Register Addressing mode: In this mode, the data is stored in a register and it is referred using particular register.Effective Address (EA) is computed using 5000H as offset address and content of DS as segment address.Example: MOV AX, Data is available in 5000H memory location.Direct Addressing mode: In this mode, the instruction operand specifies the memory address where data is located.Example: MOV CX, 0007H Here 0007 is the immediate data.Immediate addressing mode: In this mode, immediate is a part of instruction and appears in the form of successive byte or bytes. The addressing modes for sequential control transfer instructions are as follows: In this type of instruction after execution control can be transferred to the next immediately appearing instruction in the program. Thus the addressing modes describe the types of operands and the way they are accessed for executing an instruction.Īccording to the flow of instruction execution, the instruction may be categorized as: Depending upon the data types used in the instruction and the memory addressing modes, any instruction may belong to one or more addressing modes. Addressing modes indicates way of locating data or operands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |