|
The purpose of the manual is to hand-hold you from beginning to end. For the assembly language programming, you have to go into the DOS mode of your PC. The following steps are required
- The first step is to download the program package for the course. Click “Downloads” to do this.
- Click on “DOS Mode” tp go to the DOS (disk operating system) mode. This is the old-style prompt mode, where you enter commands at the prompt, as opposed to “Windows” graphic icon clicking mode.
- You have to learn about a dozen DOS commands. Unlike Windows, there are no icons to click. You have to know the commands and use them intelligently. A list of “DOS” commands is accessed by clicking “Quick DOS” button
- You should go to the C: directory and then do a “>cd phy353”. Then a “>dir’ command will show you the contents of the directory.
- You should then run the “>setpath.bat” program to set default paths all the subdirectories used by the program.
- You are ready to go to the “start” subdirectory to see how an assembly language program CALC.ASM looks.
- You then assemble the program. This is the process by which the text based program is converted to a binary based object code. Thus starting from, say CALC2.ASM, the step produces the file CALC2,OBJ
- You then link the program, that is concatenate the main program with subrgrams, which may even be hiding in an binary object library. This step produces the file CALC2.EXE.
- Now we could run this program at the DOS prompt > CALC2.ASM. Of course you will get no response on the screen from this step, because not input/output statements have yet been included in the program.
- Instead, we will run CALC2.EXE int the “debug” mode. This means we have to learn yet another software package. But it is worth it, since this will show you step-by-step how the microprocessor executes each instruction. While it may be a little tedius, the exerise may be enlightening to see how complex tasks are executed using a limited set of instructions from mathiematics and logics.
|
|