The _____ addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction.
Displacement
In register indirect addressing the instruction names a register and the effective address is simply the register's contents: \(EA = (R)\).
In displacement (register-relative) addressing the instruction carries both a register and an offset, and the effective address is the register's contents plus that offset: \(EA = (R) + \text{offset}\). This is exactly register indirect addressing with an added offset, with both the offset and the register specified in the instruction.
Base indexed addressing adds the contents of two registers (a base and an index) with no offset; base indexed plus displacement adds two registers and an offset, so it uses two registers rather than one; indexed addressing is described as an index register added to an address field that holds a memory base address, used for stepping through arrays, rather than a register pointer with a small offset.
Displacement option is correct.
What will be the hexadecimal value in the register ax (32-bit) after executing the following instructions ?
mov al, 15
mov ah, 15
xor al, al
mov cl, 3
shr ax, cl
Codes :
The advantage of _______ is that it can reference memory without paying the price of having a full memory address in the instruction.
Which of the following are not data manipulation instructions?
A. Call
B. Loud
C. And
D. Increment
E. Shift
Choose the correct answer from the options given below:
Match the following :
| Addressing Mode | Location of operand | ||
|---|---|---|---|
| a. | Implied | i. | Registers which are in CPU |
| b. | Immediate | ii. | Register specifies the address of the operand. |
| c. | Register | iii. | Specified in the register |
| d. | Register Indirect | iv. | Specified implicitly in the definition of instruction |
Codes :
Consider the following program fragment in assembly language:
mov ax, 0h
mov cx, 0A h
doloop:
dec ax
loop doloop
What is the value of ax and cx registers after the completion of the doloop?
The following language uses mnemonic OP codes