Assignment-I (MPMC)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy