You are on page 1of 2

KE26604

COMPUTER ARCHITECTURE AND MICROPROCESSOR

PRE-LAB

Microprocessor Pre-Lab 1 (a)


1. Figure 1 shows the source code for the program IO.asm.
a. For each addressing mode used in this program, list down all the line
numbers and statements where that addressing mode is used by
completing table1 below
b.

d. What is displayed on the user screen after line 5 is executed?


e. Where is your name being stored?
f. Where is the actual number of characters entered with the DOS
function A at line 7 is stored?
2. You are required to write an assembly language program (hello.asm) to
perform the followings:
a. Request the user to enter his name and age. The name can be up to
40 characters long, while the age is only two digits
b. Display the following greeting message
Hi <name> you are <age> years old. The <name> and <age> should be replaced
with the name and age of the user

KE26604

COMPUTER ARCHITECTURE AND MICROPROCESSOR

PRE-LAB

You might also like