CSC103 Homework Assignment 3

From dftwiki3
Revision as of 17:04, 30 September 2008 by Thiebaut (talk | contribs) (Program #1)
Jump to: navigation, search

This assignment is due Wednesday, Oct 8th. The answer for Problem #1, the Wiki page must be finished before midnight Wednesday evening.

Problem #1

Ehance your Wiki page by adding a section that describes what all the different parts of the computer do. For each of the part that you photographed in the "Open it up!" Lab, add a paragraph describing what that particular part does.

Organize your Wiki page so that it has two main sections, the first one will be a description corresponding to this homework assignment, the second one will be the step-by-step description of your lab. This way when we print your Wiki for grading, we'll print only the first part corresponding to this homework assignment.

=103a-xx Open-it Up! Lab=

==The main parts inside a computer, and how they work==

You will add the new information here
* the processor
* the memory
* the disk drive
* the cd-rom
* the power-supply
* the battery
* the crystal (for those of you who have pictures of it!)
* the cables

===References===


==Lab report==

(This part will be the old lab)

Add references to documents and Web resources you get your information from. Use this document for examples. If your reference is on the Web, make sure you also add a link to this location on your Wiki.

You may find some good information in the following places:

and elsewhere!

Additional information

In the paragraphs describing the different parts, I would like to see you include the following words (with relevant explanations around) in each section:

  • Processor: use the words Pentium, Intel, transistors, Megahertz (MHz)
  • Memory: bits, bytes, program, operating system, Megabytes, Gigabytes.
  • CDROM/DVDROM: optical, laser, pits, bits.
  • Hard drive: magnetic, tracks, bits, read-write head.
  • Power supply: 110 Volts, 5 Volts, 12 Volts.
  • Cables: bits
  • Motherboard: wires, bus.
  • Battery: time
  • Crystal: Megahertz.

Problem #2

Program #1

  • For this part, I would like you to type up your answers, as copying programs by hand is a good way to report mistakes and miss important details. I am providing you with information below on how to easily save your programs to Notepad.
  • You are encouraged to work in pair on this problem. Programming is an activity that is less prone to errors if two programmers work together. So work in pairs, and provide only one answer sheet with both names on it.


  • Write an assembly language program that starts with the numbers below in memory and that computes the sum of the first two, minus the third one, and stores the result at Memory Address 13:


10 6
11 5
12 9
13 0


  • When your program works the way you want, click on Disassemble and the applet will automatically take the numbers in memory and create what it thinks is the closest representation of it in an editor window.


You can edit it if you wish and put the result back in memory by clicking on the Translate button.


  • For the purpose of this assignment, just copy the program to the clipboard, and paste it into a text file which will contain the different programs you have to write for this assignment.