Question
Download Solution PDFWhich one of the following instructions is used to “Move Immediate Data to Register” in 8051?
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFAddressing Modes of 8051:
- The way in which the data sources on the destination address are specified in the instruction mnemonic for moving the data is called the Addressing modes.
- In 8051, the destination address is written first, followed by the source address.
- Syntax: MOV [destination], [source]
Immediate Addressing Mode: In this mode, the source operand is constant rather than a variable, and sign ‘#’ is used to indicate it.
Ex- MOV A, # 52H
Along with Immediate Addressing mode, different modes of addressing are described below:
1) Register Addressing mode: If the source operand is specified by eight working registers (R0-R7) and (A, B)
Ex- MOV, A, R3
ADD, A, R4
Note: MOV R0, R1 is not a possible instruction.
2) Direct Addressing mode: If the source operand is specified by its 8-bit address in an instruction available on internal RAM and special function Register, then it is a direct addressing mode.
Ex: MOV A, 50H; load byte from address 50H into ‘A’
3) Indirect Addressing Mode: R0 and R1 of each register bank can be used as an index or pointer register. R0 and R1 points the contents in the RAM and DPTR
The instruction with indirect addressing uses the ‘@’ sign.
Ex- MOV A, @ R0 =, Load the contents pointed by R0 in A
4) Index addressing Mode: The source Memory can only be accessed from program memory.
- The destination operand is always the register ‘A’.
- Either the DPTR or PC can be used as an index register.
E.g. MOVC A, @ A + DPTR: This instruction adds the unsigned 8-bit & accumulator contents into a sixteen-bit data pointer and uses the sum as an address from which the byte is moved into accumulation.
5) Register specific: Inherent in the instruction these refer to a specific register such as accumulator or DPTR.
Ex- SWAP A: Swap nibbles with Accumulator
Last updated on Jun 2, 2025
-> The RRB NTPC Admit Card 2025 has been released on 1st June 2025 on the official website.
-> Railway Recruitment Board activated the RRB ALP application form 2025 correction link, candidates can make the correction in the application form till 31st May 2025.
-> The Railway Recruitment Board (RRB) has released the official RRB ALP Notification 2025 to fill 9,970 Assistant Loco Pilot posts.
-> The Railway Recruitment Board (RRB) has released the official RRB ALP Notification 2025 to fill 9,970 Assistant Loco Pilot posts.
-> The official RRB ALP Recruitment 2025 provides an overview of the vacancy, exam date, selection process, eligibility criteria and many more.
->The candidates must have passed 10th with ITI or Diploma to be eligible for this post.
->The RRB Assistant Loco Pilot selection process comprises CBT I, CBT II, Computer Based Aptitude Test (CBAT), Document Verification, and Medical Examination.
-> This year, lakhs of aspiring candidates will take part in the recruitment process for this opportunity in Indian Railways.
-> Serious aspirants should prepare for the exam with RRB ALP Previous Year Papers.
-> Attempt RRB ALP GK & Reasoning Free Mock Tests and RRB ALP Current Affairs Free Mock Tests here