All Exams Test series for 1 year @ ₹349 only
Question

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 ?

This question was previously asked in
UGC NET 2016 Paper 3 Defence and Strategic Studies Question Paper (10-Jul-2016)
The correct answer is

(a) and (c)

The three addressing modes, applied to this memory map.

AddressContents
2040
3050
4060
5070

(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:

ModeWhat the operand isMemory reads
Immediatethe data itself0
Directthe address of the data1
Indirectthe address of the address2

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).

Was this answer helpful?

Similar Questions

  1. 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 :

  2. 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

  3. In "JZ Next" instruction of 8051 microcontroller, which register's content is checked to see if it is zero?

  4. 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:

  5. 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.

  6. 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 :

  7. 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 :

  8. Match List I with List II

    LIST I (instruction of 8051 microcontroller)LIST II (Addressing mode)
    A.MOV A, # 32 HI.Register addressing mode
    B.MOV R 6, AII.Register Indirect addressing mode
    C.MOV R4, 7 FHIII.Immediate Addressing mode
    D.MOV A, @ ROIV.Direct Addresing mode

    Choose the correct answer from the options given below:

  9. The ALE line of an 8085 microprocessor is used to

  10. Contents of ‘A’ register after execution of the following 8085 microprocessor program is

    MVI A, 55 h

    MVI C, 25 h

    ADD C

    DAA


Important Questions from Microprocessors

  1. Register which is used to store values of arithmetic and logical operations is termed:

  2. How many bytes of bit addressable memory is present in 8051 based microcontrollers?

  3. A single instruction to clear the lower four bits of the accumulator in 8085 assembly language is-

  4. In Microprocessor 8085 Address/Data buffer is a/an _______ buffer.

  5. Microprocessor 8085 operates on a clock cycle with ______ duty cycle.

Need Expert Advice?
Test Series
UGC NET img
Teaching
UGC NET Library and Information Science 2024 - 2025 Mock Test Series
66 Tests 4 Tests Free
791 Attempts
4.4(17)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App