MICROPROCESSORS
100504Module 3: Instruction Set and Programming
Q1c. JP instruction in 8085 performs branch if: (i) Carry flag is 1 (ii) Parity flag is 1 (iii) Sign flag is 0 (iv) Auxiliary carry flag is 020232m
Module 3: Instruction Set and Programming
View this question on its own page →JP instruction in 8085 performs branch if:
(i) Carry flag is 1
(ii) Parity flag is 1
(iii) Sign flag is 0
(iv) Auxiliary carry flag is 0Q1d. What can be the oscillator period for the multiplication operation of A and B in accordance to 16-bit product especially in B : A registers? (i) 12 (ii) 24 (iii) 36 (iv) 4820212m
Module 3: Instruction Set and Programming
View this question on its own page →What can be the oscillator period for the multiplication operation of A and B in accordance to 16-bit product especially in B : A registers?
(i) 12
(ii) 24
(iii) 36
(iv) 48Q1d. The instruction to copy the content of a memory location using a register indirect addressing mode is? (i) STAX (ii) LDAX (iii) LDA (iv) None of the above20232m
Module 3: Instruction Set and Programming
View this question on its own page →The instruction to copy the content of a memory location using a register indirect addressing mode is?
(i) STAX
(ii) LDAX
(iii) LDA
(iv) None of the aboveQ1d. What can be the oscillator period for the multiplication operation of A and B in accordance to 16-bit product especially in B:A registers? (i) 12 (ii) 24 (iii) 36 (iv) 4820222m
Module 3: Instruction Set and Programming
View this question on its own page →What can be the oscillator period for the multiplication operation of A and B in accordance to 16-bit product especially in B:A registers?
(i) 12
(ii) 24
(iii) 36
(iv) 48Q1e. Which among the single operand instructions complements the accumulator without affecting any of the flags? (i) CLR (ii) SETB (iii) CPL (iv) All of the above20202m
Module 3: Instruction Set and Programming
View this question on its own page →Which among the single operand instructions complements the accumulator without affecting any of the flags?
(i) CLR
(ii) SETB
(iii) CPL
(iv) All of the aboveQ1e. What is the possible range of transfer control for 8-bit relative address especially in 2's complement form with respect to the first byte of preceding instruction? (i) -115 to 132 bytes (ii) -130 to 132 bytes (iii) -128 to 127 bytes (iv) -115 to 127 bytes20212m
Module 3: Instruction Set and Programming
View this question on its own page →What is the possible range of transfer control for 8-bit relative address especially in 2's complement form with respect to the first byte of preceding instruction?
(i) -115 to 132 bytes
(ii) -130 to 132 bytes
(iii) -128 to 127 bytes
(iv) -115 to 127 bytesQ1e. JNC stands for: (i) Jump if no carry, jumps if CY=0 (ii) Jump if carry, jumps if CY=1 (iii) Jump if no carry, jumps if CY=1 (iv) Jump if carry, jumps if CY=020222m
Module 3: Instruction Set and Programming
View this question on its own page →JNC stands for:
(i) Jump if no carry, jumps if CY=0
(ii) Jump if carry, jumps if CY=1
(iii) Jump if no carry, jumps if CY=1
(iv) Jump if carry, jumps if CY=0Q1e. Which of the following statement is true for the instruction PUSH B? (i) It is an arithmetic instruction (ii) Executes in single machine cycle (iii) It reads from memory location (iv) It performs memory write operation20232m
Module 3: Instruction Set and Programming
View this question on its own page →Which of the following statement is true for the instruction PUSH B?
(i) It is an arithmetic instruction
(ii) Executes in single machine cycle
(iii) It reads from memory location
(iv) It performs memory write operationQ1e. Indexed addressing mode is mainly used for (i) Arrays (ii) Arithmetic (iii) Stack (iv) Logic20252m
Module 3: Instruction Set and Programming
View this question on its own page →Indexed addressing mode is mainly used for
(i) Arrays
(ii) Arithmetic
(iii) Stack
(iv) LogicQ1f. PUSH and POP instructions are used to ____ and ____ respectively. (i) Send the data from the stack, copy the data to the stack (ii) Send the data to the stack, copy the data from the stack (iii) All of the above (iv) None of the above20222m
Module 3: Instruction Set and Programming
View this question on its own page →PUSH and POP instructions are used to ____ and ____ respectively.
(i) Send the data from the stack, copy the data to the stack
(ii) Send the data to the stack, copy the data from the stack
(iii) All of the above
(iv) None of the aboveQ1g. Which instruction decrements and jumps if not zero? (i) DJNZ (ii) AJMP (iii) CJNE (iv) NOP20252m
Module 3: Instruction Set and Programming
View this question on its own page →Which instruction decrements and jumps if not zero?
(i) DJNZ
(ii) AJMP
(iii) CJNE
(iv) NOPQ1i. The system program used to translate directly an assembly language to machine language is called: (i) Compiler (ii) Assembler (iii) Text editor (iv) Debugger20222m
Module 3: Instruction Set and Programming
View this question on its own page →The system program used to translate directly an assembly language to machine language is called:
(i) Compiler
(ii) Assembler
(iii) Text editor
(iv) DebuggerQ3a. Write a program that converts odd parity bytes to even parity bytes (bit 7 is the parity bit).20217m
Module 3: Instruction Set and Programming
View this question on its own page →Write a program that converts odd parity bytes to even parity bytes (bit 7 is the parity bit).
Q3a. Explain the indexed addressing and relative addressing in 8051 micro-controller.20227m
Module 3: Instruction Set and Programming
View this question on its own page →Explain the indexed addressing and relative addressing in 8051 micro-controller.
Q3b. Explain the various programming and debugging tools in 8051 micro-controller.20227m
Module 3: Instruction Set and Programming
View this question on its own page →Explain the various programming and debugging tools in 8051 micro-controller.
Q3b. What are the different program development tools used in microprocessor and microcontrollers?20237m
Module 3: Instruction Set and Programming
View this question on its own page →What are the different program development tools used in microprocessor and microcontrollers?
Q4. Show the results of the following: (i) ``assembly MOV A, #35H ANL A, 0FH ` (ii) `assembly MOV A, #04H ORL A, 03H ` (iii) `assembly MOV A, #54H XRL A, A ` (iv) `assembly CLR C MOV A, #26H RRC A ``202214m
Module 3: Instruction Set and Programming
View this question on its own page →Show the results of the following:
(i)
MOV A, #35H ANL A, 0FH(ii)
MOV A, #04H ORL A, 03H(iii)
MOV A, #54H XRL A, A(iv)
CLR C MOV A, #26H RRC AQ4a. What are the different addressing modes used in microprocessor? Explain with suitable instruction examples.20237m
Module 3: Instruction Set and Programming
View this question on its own page →What are the different addressing modes used in microprocessor? Explain with suitable instruction examples.
Q4b. What are the different instruction types supported in 8085 microprocessor? Explain with suitable instruction examples.20237m
Module 3: Instruction Set and Programming
View this question on its own page →What are the different instruction types supported in 8085 microprocessor? Explain with suitable instruction examples.
Q4b. Discuss the data transfer and arithmetic instructions of the 8051.20257m
Module 3: Instruction Set and Programming
View this question on its own page →Discuss the data transfer and arithmetic instructions of the 8051.
Q5a. Write a program to find the largest number in an array using 8051 assembly language.20257m
Module 3: Instruction Set and Programming
View this question on its own page →Write a program to find the largest number in an array using 8051 assembly language.
Q5b. What is Subroutine? Explain the execution of Subroutine function.20227m
Module 3: Instruction Set and Programming
View this question on its own page →What is Subroutine? Explain the execution of Subroutine function.
Q5b. Explain Different Addressing Modes of 8051 Microcontroller.20257m
Module 3: Instruction Set and Programming
View this question on its own page →Explain Different Addressing Modes of 8051 Microcontroller.
Q6a. Explain subroutine instructions and stack operations in 8051.20257m
Module 3: Instruction Set and Programming
View this question on its own page →Explain subroutine instructions and stack operations in 8051.
Q7a. Explain in detail about the addressing modes of 8051. Use example instructions for proper explanation.20227m
Module 3: Instruction Set and Programming
View this question on its own page →Explain in detail about the addressing modes of 8051. Use example instructions for proper explanation.
Q7a. What are the branching instructions in 8051? Explain with suitable examples.20237m
Module 3: Instruction Set and Programming
View this question on its own page →What are the branching instructions in 8051? Explain with suitable examples.
Q7b. Explain the following instructions: (i) CJNE (ii) DJNZ20237m
Module 3: Instruction Set and Programming
View this question on its own page →Explain the following instructions:
(i) CJNE
(ii) DJNZQ7b. Define subroutine. Explain the execution of subroutine function.20247m
Module 3: Instruction Set and Programming
View this question on its own page →Define subroutine. Explain the execution of subroutine function.
Q8a. Explain the register addressing mode and direct addressing mode in 8051.20208m
Module 3: Instruction Set and Programming
View this question on its own page →Explain the register addressing mode and direct addressing mode in 8051.
Q8a. Define "OPCODE" and "OPERAND" with example. What do you understand by instruction set. Write the 3 categories of data transfer instructions.20227m
Module 3: Instruction Set and Programming
View this question on its own page →Define "OPCODE" and "OPERAND" with example. What do you understand by instruction set. Write the 3 categories of data transfer instructions.
Q8b. Explain the data transfer instructions and arithmetic instructions with few examples.20206m
Module 3: Instruction Set and Programming
View this question on its own page →Explain the data transfer instructions and arithmetic instructions with few examples.
Q9d. Write short notes on: Various addressing modes of 8051 microcontroller20247m
Module 3: Instruction Set and Programming
View this question on its own page →Write short notes on: Various addressing modes of 8051 microcontroller