KM41703 MICROPROCESSORS AND ELECTRONICS MICROPROCESSOR PRE-LAB
Pre-Lab (Only for Tuesday Session)
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. c.
d. What is displayed on the user screen after line 5 is executed? e. Where is your name is 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 50 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 name and age of the user
KM41703 MICROPROCESSORS AND ELECTRONICS MICROPROCESSOR PRE-LAB