B. R7 only 14. What is the Sinai result in the accumulatr tllwing the evecution
ID: 3602247 • Letter: B
Question
B. R7 only 14. What is the Sinai result in the accumulatr tllwing the evecution of the following program segment? A 39H D. 3FH 15 Relatve adhessng 1mad to a target range of A Oto 255 B o to 127 C-128 to 127 D-255 to 255 16. The stack is a secton of - A. Flash B RAM C UV-EPROM D. EEPROM 17. What is the condition for which the JZ instruction jumps to the target address? A. If the accumulator contents 1 B. If the accumulator contents0 C. If the accumulator contents >1 D. If the accumulator contents 18. Which of the following best describes a subroutine? A A set of instructions that can be called more than once by the program B A set of instructions that can only be called once by the program C. A set of instructions that substitute alternate functions D. A set of instructions located at a fixed block of memory 19. What is the final result in the accumulator following the execution of the following program segment?Explanation / Answer
13.
Answer is option C (R0 and R1)
In the register indirect addressing mode, a register is used as a pointer to the data. Only register R0 and R1 are used for this purpose. R2-R7 registers cannot be used to hold the address of operand in this case.
14.
Answer is C. (09H)
MOV A, #39H =>puts ASCII value 9 in accumulator.
ANL A, #)FH => does bitwise logical AND of 9 (00001001) with F=15 (00001111) and hence the output is 00001001 which is nothing but 9 in BCD and stores it in accumulator
15.
Answer is C. (-128 to +127)
this is becasue a relative address is an 8-bit signed value, which is added to the program counter to form the address of next instruction executed. Hence the target range becomes -128 to +127
16.
Answer is B. (RAM)
The RAM locations 00 - 1FH are assinged to stack and register banks. Most commonly applications use 8-1FH RAM locations for stack usage.
17.
Answer is B. (If accumulator contents = 0)
JZ checks for accumulator contents and if it is 0 it jumps to target address.
18.
Answer is A. (A set of instructions that can be called more than once by the program)
This is because subroutines are sequence of program instructions packaged as a unit that perform a particular task and can be called anytime from the main program whenever that particular task has to be performed.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.