Discussion
Which of the following represents indexed addressing ?
Answer: A
Indexed addressing is represented by MOVC A, @ + DPTR (MOVC A, @A+DPTR).
In the 8051 the indexed addressing mode forms the address by adding the accumulator to a base register, DPTR or PC. MOVC A,@A+DPTR reads a byte from code memory at that sum, which is how look-up tables are read.
AJMP addr is absolute addressing within a 2 K page. SETB 07H (printed 'SET B') sets a bit at a bit address, which is bit (direct) addressing. MOV A,47H copies from internal RAM address 47H, which is direct addressing.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development