7. The second byte of an instruction in the immediate addressing mode is A a lab
ID: 3602246 • Letter: 7
Question
7. The second byte of an instruction in the immediate addressing mode is A a label B an opcode C an address value D a data value 8 The addressing mode for the instruction ADD A, R7 iste- A register addressing mode B. indexed addressing mode C. relative addressing mode D. immediate addressing mode 9. Which addressing mode is used for pushing information onto the stack? A Register addressing mode B. Indexed addressing mode C. Relative addressing mode D Direct addressing mode 10 What is the finail result in the accumulator after the execution of the following program segment? MOVA. #13H ADD A, #17H ADD A, #10H A. 1BH B 40H C. 3AH D. 28H 11. A microcontroller's program counter is typically as wide as the A data bus B. control bus C. address bus D largest bus width 1 owing instruactions is used to access data elements of lookup table entris locateds n the program ROM space of the 8051? A MOV@RO, A B. MOV @A, @R1 C. MOVA @A+DPTR D. MOVC A @A DPTRExplanation / Answer
Solutions :
7) D . a data value
In immediate addresing mode, the first byte is for opcode and second byte is for data value.
8) A. Register addresing mode
Here content of register R7 is added in content of A.
9) D. Direct addressing mode.
In 8051 for stack the only addressing mode used is direct addressing mode.
10) c. 3AH
here MOV A, #13H will make A = 13H = (19 with base 10)
then Add A, #17H will add 17H(=23 with base 10) to A = 19+23 = 42 with base 10
Then Add A, #10H will add 10H(=16 with base 10) to A = 42+16 = 58 with base 10
hexadecimal of 58 is 3AH.
11) c. Address bus .
Program counter must be able to store address, hence it has to be as much wide as address bus.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.