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:
A & B only
Morris Mano divides computer instructions into three groups: data transfer instructions (move data without changing it), data manipulation instructions (arithmetic, logical and bit-manipulation, and shift instructions) and program control instructions (change the flow of execution).
A. Call — transfers control to a subroutine: a program control instruction, not data manipulation.
B. Loud (Load) — copies a word from memory into a register: a data transfer instruction, not data manipulation.
C. And — a logical (bit-manipulation) instruction: data manipulation.
D. Increment — an arithmetic instruction: data manipulation.
E. Shift — a shift instruction: data manipulation.
So only Call and Load are not data manipulation instructions; every other choice includes at least one of And, Increment or Shift.
A & B only 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.
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.
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