You are on page 1of 2

CSE 331L / EEE 332L: Microprocessor Interfacing & Embedded System

Section: 8, Spring 2021


Quiz - 02
Marks: 10

Name: Mubasshir Ahmed

ID: 1631556042

Q1: Where the input data is stored when the program takes an input using the
single key input function? (1)

Ans 1: memory address

Q2: What is a label in assembly language? Write in your own words. (2)

Ans 2: A label is a symbol that represents the memory address of an instruction


or data .

Q3: What is the purpose of the ‘?’ in the following instruction? (2)

VAR DW ?

Ans 3: initial value


The following program tries to print the string, STR1 only. But there are some
errors in it:

Q4: Identify and explain the errors in the code. (2+3)

Ans 4:
“LEA DX, STR1 “ this line will be placed before output string .
“MOV AH 9” this line will be “MOV AH 09H”

You might also like