Sei sulla pagina 1di 2

Total Mark: 20 6th CSE Duration: 20 mins. (Write your answer in the given question paper.

You can use the back side as rough. ) 8085(1,2), 8051(3-6), 8086(7-10) 1. The instruction MVI M, 5AH is stored at memory location 05EFH. After execution of this instruction, the content of PC will be: 05F1H 2. MVI C, 3AH NXT: DCR C JNC NXT The loop will be executed

MPMC Lab Quiz test

times. Infinite 07H .

3. Upon system reset in 8051, the SP register content will be

4. What will be the content of Accumulator after execution of the following instructions? MOV A, #0A5H CPL A SWAP A A5H 5. When the clock frequency of 8051 is 24 MHz, the time required to execute the MUL AB instruction is: 2s 6. MOV 50H, #05H MOV R1, #50H MOV A, #2AH XCHD A, @R1 After execution of these instructions, the content of Accumulator is content of memory location 50H is 0AH

25H

and the

7. What would be the offset required to map to the physical address location 15C30H, if the content of the corresponding segment register is 1250H. 3730H 8. The initial content of flag register is 5555H. After execution of the following instructions the content of flag register is: 555AH MOV AH, 5AH SAHF 9. Write instructions to multiply the content of AH register with 10H without using MUL instruction. MOV CL,04H SHL AH, CL 10. MOV CX, 0005H REP MOVSW The initial content of SI and flag registers is F000H and 00FFH respectively. After execution of these instructions, the content of SI register is F00AH

Roll No:

Name:

Marks Obtained:

Microprocessor and Microcontroller Lab Quiz test


Total Mark: 20 6th Sem EEE Duration: 20 mins. (Write your answer in the given question paper. You can use the back side as rough. ) 1. What is the main difference between SUB and CMP Instruction in 8085? In SUB results are modified along with flag registers but in CMP only flags are modified. 2. The initial content of SP register is 4502H and the content of memory locations are: 4500H to 4502H are 5AH and 4503H to 4508H are BBH. After execution of POP PSW instruction, the content of SP register is 4504H and flag register is 5AH . 3. Write an instruction to double the content of A register in 8085. ADD A or RLC 4. The instruction MVI M, 5AH is stored at memory location 0500H. After execution of this instruction, the content of PC will be: 0502H 5. MVI C, 3AH NXT: DCR C JNZ NXT The loop will be executed 3AH / 58

times.

6. The initial content of A, B and flag register is 30H, 30H and 55H respectively. After execution of the MUL AB instruction the content of carry flag is ZERO and content of B register is 09H 7. What will be the content of Accumulator after execution of the following instructions? MOV A, #0A5H CPL A SWAP A A5H 8. Upon system reset in 8051, the SP register content will be 07H .

9. When the clock frequency of 8051 is 12 MHz, the time required to execute the DIV AB instruction is: 4s 10. MOV 50H, #05H MOV R1, #50H MOV A, #2AH XCHD A, @R1 After execution of these instructions, the content of Accumulator is of memory location 50H is 0AH .

25H

and the content

Roll No:

Name:

Mark Obtained:

Potrebbero piacerti anche