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

In 8051, consider the following instructions: 

MOV PSW, #18H 

 MOV R3, #55H 

MOV A, R3. 
 

From which register bank is R3 selected in the instruction MOV A, R3?

This question was previously asked in
RRB JE 2025 CBT 2 Mechanical and Allied Engg Question Paper English (2-Jul-2026) (Shift-1)
The correct answer is

Bank 3

The 8051 keeps four banks of eight general-purpose registers (R0–R7), called Bank 0, Bank 1, Bank 2 and Bank 3, occupying internal RAM addresses 00H–1FH (8 bytes per bank). Only one bank is active at a time, and the active bank is chosen by two bits inside the Program Status Word (PSW): RS1 (bit 4) and RS0 (bit 3).

The instruction MOV PSW, #18H loads the PSW with 18H. Converting to binary:

Bit7654 (RS1)3 (RS0) 210
Value00011000

So RS1 = 1 and RS0 = 1. The bank-select mapping is: 00 → Bank 0, 01 → Bank 1, 10 → Bank 2, 11 → Bank 3. Since RS1 RS0 = 11, the active bank is Bank 3, whose registers live at addresses 18H–1FH; here R3 corresponds to address 1BH.

Therefore MOV R3, #55H writes 55H into R3 of Bank 3, and MOV A, R3 reads that same R3 from Bank 3. That is why the correct answer is Bank 3.

Why the other options are wrong:

  • Bank 0 would require RS1 RS0 = 00 (PSW value 00H), but the loaded value 18H sets both select bits to 1.
  • Bank 1 corresponds to RS1 RS0 = 01, and Bank 2 to RS1 RS0 = 10; neither matches the 11 pattern produced by 18H.
Was this answer helpful?

Similar Questions

  1. Which of the following statements about the Harvard architecture used in the 8051 microcontroller is correct?


Important Questions from Microprocessors

  1. What is the value in AL and CF after the following instruction in 8086 is executed?
    MOV AL, 8EH
    MOV CL, 02H
    SAR AL, CL
  2. What is the content in R1, after the following instructions are executed?
    CLR C
    MOV A,#4CH
    SUBB A,#6EH
    JNC NEXT
    CPL A
    INC A
    NEXT: MOV R1, A
  3. When TMOD is 10 H, the timer will operate as ____________.
  4. The Assembler directive in 8086 which is used to tell the assembler that the names or labels following the directive are in some other assembly module is, ____________.
  5. The magnetic vector potential of an electromagnetic system is given by $  \vec{A}=(y \cos ax)  \vec{a_x} + (y+e^x)   \vec{a_z}$. The magnitude of the magnetic flux density at the origin is

Need Expert Advice?
Test Series
RRB JE img
Railways
RRB JE (CBT 1 + CBT 2) 2026 Mock Test Series
1515 Tests 19 Tests Free
1820 Attempts
4.3(163)
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