Observe the Emory Honor Code when doing homeworks.
The purpose of this homework is primarily to allow you to get used to the EGTAPI (Emory Graphical Tool for Assembler Programming Instruction) system before the serious project assignments are given, and introduce you to the EGTAPI programming environment.
The tutorial of the Emory Graphical Tool for Assembler Programming Instruction (EGTAPI) can be found here:
|
I have used Egtapi in class and explained how to work with it. You should be able to use Egtapi without reading through the complete documentation. But browse the content of the documentation so you get familiar with the topics and can consult the documentation if you need to find some feature that you need to use.
After downloading the file, you must create a directory called (say) cs255 and extract the downloaded compressed archive into this cs255 directory in your laptop.
Click on the Egtapi icon to start EGTAPI.
Use project code hw8
You will have create a hw8 folder containing these program files:
hw8.s Assembler program file for this homework assignment |
You must edit the project file "hw8.s" and write the required assembler instructions in this program file.
How to edit the project file hw8.s file:
|
The skeletal program has 10 sections, labeled as Q1, Q2, ..., Q10 where you put assembler instructions
|
|
Recall from the lecture(s) that:
|
Warning:
|
There are some more helpful hints on testing your program in the next section !!!
This is how you run your program "hw8.s":
|
|
|
In this assignment, you should only use the Step key and the Run key.
The Step key (right arrow with a bar):
|
You can experiemnt with the Step to execute code for Question 1 of the assignment (after you have written it).
If your code is correct, after pressing about 4 - 5 Step, you will see the variable ans_s change from ans_s = 0 to ans_s = 44 in the variable window EGTAPI:
The Run key will run the program and program execution will only stop when it reaches a breakpoint.
I have already set up 10 breakpoints in the program and they are shown in the break point panel in Egtapi:
These label have been defined in hw8.s and corresponds to questions in the assignment.
|
|
|
If you discover more errors, just repeat the above steps until your program is error-free.