1. The second byte of an instruction in the immediate addressing mode is A. a la
ID: 3724889 • Letter: 1
Question
1. 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 2. The addressing mode for the instruction ADD A, R7 is the A. indexed addressing mode B. immediate addressing mode C. relative addressing mode D. register addressing mode 3. Which addressing mode is used for pushing information onto the stack? A. Direct addressing mode B. Indexed addressing mode C. Relative addressing mode D. Register addressing mode 4. What is the final result in the accumulator after the execution of the following program segment? MOV A, #13H ADD A, #17H ADD A, #10H A 1BH B. 40H C. 28H D. 3AH 5. A microcontroller's program counter is typically as wide as the A data bus B. control bus C. largest bus width D. address bus 6. Which of the following instructions is used to access data elements of lookup table entries located in A MOV @RO, A B. MOV @A, @R1 C. MOV A, @A+DPTR D. MOVC A, @A+DPTRExplanation / Answer
(1) D. a data value.In immediate addressing,second byte is a constant data value instead of any register or memory address location or value.
(2) D. register addressing mode.In this addressing a register name is mentioned(like R1,R2 etc.) and value stored in that register will be the effective operand.
(3) A. direct addressing mode.Cause,if I want to push X into stack,and say stack at Z memory address.Then after inserting X at Z,we can manually increase the top address(stack pointer) as Z+data size(for int 4,in 32 bit machine).And so on.Now,at every moment stack pointer points to top of the stack.When popping decrese the SP value by data size.
(4) D. 3AH=(17H+13H+10H).
decimal equivalent,(23+19+16)=(58)10=3AH
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.