Word 20 contains 40 Word 30 contains 50 Word 40 contains 60 Word 50 contains 70 Which of the following instructions loads 60 into the accumulator ? (a) load immediate 60 (b) load direct 30 (c) load indirect 20 (d) load indirect 30 Which of the above statements are correct ?
(a) and (c)
The three addressing modes, applied to this memory map.
| Address | Contents |
|---|---|
| 20 | 40 |
| 30 | 50 |
| 40 | 60 |
| 50 | 70 |
(a) load immediate 60. The operand is the value: 60 goes straight into the accumulator. No memory is read at all. ✓ loads 60.
(b) load direct 30. The operand is an address; the CPU fetches whatever that location holds. Word 30 contains 50, so the accumulator gets 50. ✗
(c) load indirect 20. Indirect addressing takes two memory accesses. The operand 20 is the address of a pointer: first read word 20, which contains 40, and treat that as the real address; then read word 40, which contains 60. ✓ loads 60.
\(20 \rightarrow 40 \rightarrow 60\)
(d) load indirect 30. Following the same two hops: word 30 contains 50, so go to word 50, which contains 70. The accumulator gets 70. ✗
So (a) and (c) both deliver 60, which is option 1.
The general rule worth fixing. Each addressing mode adds one level of indirection:
| Mode | What the operand is | Memory reads |
|---|---|---|
| Immediate | the data itself | 0 |
| Direct | the address of the data | 1 |
| Indirect | the address of the address | 2 |
Why indirect addressing exists. Because the pointer sits in memory, it can be changed at run time — which is exactly how arrays are stepped through, how linked lists are followed, and how parameters are passed by reference. The cost is the extra memory access, which makes it the slowest of the three modes.
Hence, the correct answer is (a) and (c).
Given below are two statements :
Statement I : In 8051 micro-controller register banks and stack reserves 32 bytes from locations 00 to 1F Hex
Statement II : Bit-Addressable RAM locations are 20 H to 2 F H.
In the light of the above statements, choose the most appropriate answer from the options given below :
Find the delay generated by Timer 0 in the following code of 8051 microcontroller : clock period = 1.085 µs.
MOV TMOD, #01H
MOV TLO, #3DH
MOV THO, #0A2H.
SET B TRO
Loop : J N B TFO, LOOP
CLR TRO
CLR TFO
In "JZ Next" instruction of 8051 microcontroller, which register's content is checked to see if it is zero?
Using 8051 assembly language programming numbers 54 H and 98 H are added. After addition the status of CY, AC and P flags are respectively:
In 8051 microcontroller, one machine cycle lasts in 12 oscillation period. Crystal oscillator's frequency is 11.0592 MHz. Find how long it takes to execute instruction MOV R4, # 25.
Advantage of segmented memory in 8086 is
A. Allows the memory capacity to be 1M byte, although the actual address is of 16 bit size.
B. Allows the placing of code and data portions of the same program in different parts of memory.
C. Allows the memory capacity to be 2M byte, although the actual address is of 16 bit size.
D. Allows the placing of code and data portion of the same program in same parts of memory.
E. Allows the memory capacity to be 1M byte, although the actual address is of 20 bit size
Choose the correct answer from the options given below :
Which of the following statements are correct for a microcontroller ?
A. A microcontroller has on-chip I/O ports
B. A microcontroller has a fixed amount of RAM on the chip
C. The flag register in the 8051 is called program standard word
D. Auxiliary carry flag is set when there is a carry from D3 to D4 during an ADD or SUB operation
E. Overflow flag is only used to detect errors in unsigned arithmetic operations.
Choose the correct answer from the options given below :
Match List I with List II
| LIST I (instruction of 8051 microcontroller) | LIST II (Addressing mode) | ||
|---|---|---|---|
| A. | MOV A, # 32 H | I. | Register addressing mode |
| B. | MOV R 6, A | II. | Register Indirect addressing mode |
| C. | MOV R4, 7 FH | III. | Immediate Addressing mode |
| D. | MOV A, @ RO | IV. | Direct Addresing mode |
Choose the correct answer from the options given below:
The ALE line of an 8085 microprocessor is used to
Contents of ‘A’ register after execution of the following 8085 microprocessor program is
MVI A, 55 h
MVI C, 25 h
ADD C
DAA
Register which is used to store values of arithmetic and logical operations is termed:
How many bytes of bit addressable memory is present in 8051 based microcontrollers?
A single instruction to clear the lower four bits of the accumulator in 8085 assembly language is-
In Microprocessor 8085 Address/Data buffer is a/an _______ buffer.
Microprocessor 8085 operates on a clock cycle with ______ duty cycle.