Question: EIEn 306 Microprocessor Interfacing Laboratory spring 2017 Lab 5B INTRODUCTION TO ASSEMBLY LANGUAGE PROGRAMMING I. Continuation of Fundamentals of Assembly Language We will use the
EIEn 306 Microprocessor Interfacing Laboratory spring 2017 Lab 5B INTRODUCTION TO ASSEMBLY LANGUAGE PROGRAMMING I. Continuation of Fundamentals of Assembly Language We will use the same assembler in last week's lab. If you deleted the working package used directory you used last week, make a new one. 1. Make a working directory on your hard drive (eg. name it lab5). 2. Download the assembler package emailed to you, asm5.zip, to your working directory and unzip it. 3. Cut and paste the example program 5B (that was emailed to you) into a text editor, such as Notepad. Do not use Microsoft word because it will add visible and invisible formatting characters, Save the program as "loveprog.asm in your working directory. Note that DOS files must have names of eight characters or less. 4. Assemble your program by entering masm loveprog. (Upper or lower case letters are oK. Note that the extension was not used Hit the enter key after the computer presents the following prompts: jec2.OBU NULLST NULCRT lf errors are indicated in your program, make corrections in the source program and re- assemble. 5. Enter dir/w at the command prompt to view the contents of the working directory. There should be a file named loveprog.obj 6. Enter link loveprog (without extension). Hit enter after each of the prompts you receive. 7. Enter dir/w at the command prompt to view the contents of the working directory. There should be a file named loveprog.exe. 8. Start debug and make sure the AX, BX, O, and DX registers are clear. Exit debug. 9. Enter the following command at the command prompt: debug loveprog.exe. 10. Set IP to the appropriate address and execute the program in full speed mode. EIEn 306 Microprocessor Interfacing Laboratory spring 2017 Lab 5B INTRODUCTION TO ASSEMBLY LANGUAGE PROGRAMMING I. Continuation of Fundamentals of Assembly Language We will use the same assembler in last week's lab. If you deleted the working package used directory you used last week, make a new one. 1. Make a working directory on your hard drive (eg. name it lab5). 2. Download the assembler package emailed to you, asm5.zip, to your working directory and unzip it. 3. Cut and paste the example program 5B (that was emailed to you) into a text editor, such as Notepad. Do not use Microsoft word because it will add visible and invisible formatting characters, Save the program as "loveprog.asm in your working directory. Note that DOS files must have names of eight characters or less. 4. Assemble your program by entering masm loveprog. (Upper or lower case letters are oK. Note that the extension was not used Hit the enter key after the computer presents the following prompts: jec2.OBU NULLST NULCRT lf errors are indicated in your program, make corrections in the source program and re- assemble. 5. Enter dir/w at the command prompt to view the contents of the working directory. There should be a file named loveprog.obj 6. Enter link loveprog (without extension). Hit enter after each of the prompts you receive. 7. Enter dir/w at the command prompt to view the contents of the working directory. There should be a file named loveprog.exe. 8. Start debug and make sure the AX, BX, O, and DX registers are clear. Exit debug. 9. Enter the following command at the command prompt: debug loveprog.exe. 10. Set IP to the appropriate address and execute the program in full speed mode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
