| [Assessment] [Assignment 1] [Assignment 2] [Assignment 3] [Quiz] |
Handed Out: Wednesday 12 May Due In: 1200 Monday 31 May Marked: Friday 18 June
Your assignment will be returned to you in your laboratory class in week 13. Uncollected assignments will be available from the department office from the following week.
Your assignment will be marked according to a standard marking guide. The files for a sample solution to the assignment can be downloaded below.
Your task is to implement a simple program in the C programming language to analyse the address space and range of devices attached to a computer bus. You are required to test your code using the principles covered in class and to write a short report describing the test cases you used and why.
Detailed information about the assignment is contained in the printed requirements, which is available via the handouts page.
The assignment is now due at 1200 (midday) Monday 31 May.
The compiler doesn't know about the functions supplied by most libraries unless you explictly tell it to link with those libraries. This is done by setting a flag on the compiler command line. If you check the manual page for a function it should tell you what flags you will need to set on the compiler in order to use it. For example, if you look up a function from the math library, pow for example, using the man command (i.e., you type `man pow' at the UNIX prompt) you will see that you need to add `-lm' to the command line to use it.
Either would be acceptable, though reprompting would be nicer.
Don't worry about that - assume that the input will always be a number.
Is the pope catholic?
The base address of the device is 41984 dec or 0xA400 hexI can get my program to print `...0xa400' or `...0XA400', but not `...0xA400' like it is in the sample. What gives?
What gives is that I should have asked you to print it out as `...0xa400' or `...0XA400'. Either of those will do.
You can assume that the the bus width is narrow enough so that integer computation is sufficient to compute the correct answer.
| [Assessment] [Assignment 1] [Assignment 2] [Assignment 3] [Quiz] |