0% found this document useful (0 votes)
97 views2 pages

Assignment-I (MPMC)

1. The first JNZ instruction will cause control to be transferred to LOOP 4 times. The second JNZ instruction will cause control to be transferred to LOOP 3 times. 2. After executing the instructions, the memory contents will be 00 in 2400H, 0F in 2401H, 1A in 2402H, and 03 in 2403H. 3. After executing the instructions, the register and memory contents will be 08 in A, 02 in H, 00 in L, 08 in 2400H, 06 in 2401H, 08 in 2500H, and 00 in 2501H.

Uploaded by

Dineesh babu L
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views2 pages

Assignment-I (MPMC)

1. The first JNZ instruction will cause control to be transferred to LOOP 4 times. The second JNZ instruction will cause control to be transferred to LOOP 3 times. 2. After executing the instructions, the memory contents will be 00 in 2400H, 0F in 2401H, 1A in 2402H, and 03 in 2403H. 3. After executing the instructions, the register and memory contents will be 08 in A, 02 in H, 00 in L, 08 in 2400H, 06 in 2401H, 08 in 2500H, and 00 in 2501H.

Uploaded by

Dineesh babu L
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Sona College of Technology (Autonomous), Salem -5.

Department of Mechatronics Engineering


Academic Year 2022-2023(EVEN)
Assignment –I

DATE : 09.03.2023

Outcomes
U19MC403-

Levels of

Course
B.T
MICROPROCESSORS & Marks : 30
Due Date: 17.03.2023 MICROCONTROLLER

PART – A Answer All Questions (3 x 10 =30 Marks)


1. In the program below, number of times the first and second JNZ instructions cause the control HOTS 1
to be transferred to LOOP are respectively. (GATE/PSU) (5 Marks)
MVI H,02H
MVI L,05H
LOOP: DCR L
Ist : JNZ LOOP.
DCR H
2nd :JNZ LOOP
2. The content of the memory locations 2400H,2401H,2402H and 2403H are 00, FFH,0FH and HOTS 1
1AH respectively. What will be the memory content after the following instructions are
executed? (5 Marks)

LHLD 2402H
LDA 2400H
MOV B.L
MOV C,H
MVI D,03
MOV E,A
SHLD 2400H
STA 2402H
3. What will be the values in registers A,H, L and locations 2400H,2401H, 2500H and 2501H HOTS 1
after execution of the following instructions? (10 Marks)

LXI H,2400H
MVI A,08H
MOV M,A
INX H
SUI 02H
MOV M,A
LHLD 2400H
SHLD 2500H
LDA 2501H
RLC
RLC
RLC
ANI 98H

4 Consider following set of instructions HOTS 1


MVI A,BYTE1
RLC
MOV B,A
RLC
RLC
ADD B
IF BYTE1=07H, what is the content of A after execution of the above program?
(GATE/PSU) (5 Marks)

5 Consider the following program HOTS 1


MVI A,BYTE
RRC
RRC
If BYTE=32H, what will be the content of A after execution of the above program?
(GATE/PSU) (5 Marks)

You might also like