![]() |
ANU College of Engineering and Computer Science
School of Computer Science
|
|
|
Introduction to Computer SystemsAssignment 2 Specification - rPeANUt - Drawing ProgramThe aim of this assignment is to give you a challenging assembly program to write. Unlike the first assignment, this assignment will be completely marked by computer. Thus the focus is on correctness and performance. Coding style and coding formatting will not be marked (not to say these are not important as a clear consisted approach in your formatting and coding style will help with the correctness of your submission).The basic part of the assignment aims to be simple enough for most students to be able to complete in less then 5 hours. The assignment also aims to provided a more challenging programming task for the student who wish to gain extra experience (and a higher mark). The assignment will be marked out of 100. And is worth 10% of the final mark. A late penalty of 10% per day applies (these are working days and apply from after the assignment is collected. The assignment will be collected some time after noon on the Friday. Also note this penalty is caped, so it does not take your final mark below 40 out of 100. Assignment work will not be accepted after the last day of semester. Extensions are possible in documented exceptional cases (e.g. medical certificate).
Drawing ProgramThe drawing program takes input commands from the terminal and uses these to draw into the frame buffer. The program halts when the 'h' command is issued. The program must not do any output to the terminal.Commands are given by a single character followed by optional parameters. You may assume the input provided to the program has no formatting problems. The parameters of the commands are given as 2 digit hex numbers (using lower case). You may assume the frame buffer starts off empty (a fresh reset and load has taken place when your program starts). When the program finishes a dump of the frame buffer is obtained and compared for correctness. The commands are as follows:
MarkingThe marking of this assignment will be automatic. So it is important that your solution compiles and works. Also, get the assignment working in stages. Different tests will be performed such that if you only complete some of the commands you will still gain marks for the command you were able to get going. If you can't get the harder parts of the assignment working just leave them out of your submission and get the marks for the earlier parts. The marking stages of the assignment are as follows:
TestsThe tests will be available from: http://cs.anu.edu.au/students/comp2300/ass2tests. These give you an idea of the types of tests performed (still working on these, but will be out before the second week of the break).To run a test you need to check that when your program is given a set of commands it produces identical output. This can be done using the following terminal command: java -jar rPeANUtxxx.jar -dump drawing.s < testX.commands | diff - testX.resultThere should be no difference between your output and what is expected. Individual AssignmentThis is an individual assignment. You may help each other, however, the final submission must be original and your own work. Take care not to give parts of your solution to other students.Assignment SubmissionThe assignment must be submitted via a computer in the CSIT labs (or remotely via ssh to "partch" or one of our servers). To submit the assignment use the following command:submit comp2300 ass2 drawing.s A few hits for submission:
| |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please direct all enquiries to: ericm@cs.anu.edu.au Page authorised by: Head of School, SoCS |
| The Australian National University — CRICOS Provider Number 00120C |