810:041
Computer Organization
Fall 2009

If it ain't water-cooled, its a terminal

Instructor: Dr. O'Kane
Office: 318 ITT (East Gym)
e-mail: okane@cs.uni.edu
www: http://www.cs.uni.edu/~okane
Tel: 273-7322
Office Hours: Click Here
Requirements:
  • Five (approx.) assignments counting a total of 40 percent. Assignments are due at the beginning of class. Late assignmnets without a verified excuse will not be accepted.
  • Unannounced quizes: 10% total. There will be no makeup quizes. Minumum grade of 50% if you are present to take a quiz.
  • Two tests counting 15 percent each (total of 30);
  • A final exam counting 15 percent;
  • Attendance, class participation and deportment: 5 percent.

    Classes: Classes are lecture format. Cell phones, pagers, laptops and PDA's may not be used.

  • Makeup Tests Makeup tests will be given only in cases of demonstrated need for causes such as serious illness, family emergency or University sanctioned schedule conflict. In all cases, written documentation will be required.
    Test dates
  • Test 1: Mon Oct 5, 2009
  • Test 2: Fri Nov 20, 2009
  • Final: See Registrar Page
  • Final Grades Final grades will not be available via email. If you want your grade mailed to you, bring a self addressed, stamped envelope to the final.
    Originality If your work duplicates in whole or in part the work of someone else, both works will receive a grade of 0.
    Notes on IBM Assmebly Language IBM Mainframe Assembly
    Videos You should download the videos then play them. The videos that end in .wmv will probably only play on a Windows machine or an Apple with the correct codec installed. The format is Windows proprietary.

    1. Access to memory sticks from VBOX Ubuntu

      Here are the video clips of how to access a memory stick from ubuntu and run the simulator. These are primitive - I did them with my still camera.

      clip 1
      clip 2
      clip 3

      These assume you have installed VBox, Ubuntu, and dosbox. remember, you can run the simulator on any campus machine. This is just if you want to do it yourself AND you have a 64 bit machine AND you have 64 bit windows. If you have 32 bit windows, you can run the simulator as-is in a command prompt window.

    2. Installing Guest Additions

    3. Shared Folders

      Shared Folders Part 1
      Shared Folders Part 2

      Note 1: USB memory devices should be shared as folders. Before Ubuntu starts, plug your memory stick in and wait for Windows to assign it a drive letter. Use this drive letter in place of the C:\ in the above videos.

      Note 2: USB memory and disk folders mounted in Ubuntu are automatically dismounted by Ubuntu when you shut Ubuntu down. These, however, are still mounted by Windows and should then be dismounted from Windows in the usual way. If you need to dismount a mounted USB folder device before you shut Ubuntu down, you will need, as root, to execute the umount command shown in the second video. Once it is unmounted from Ubuntu, it can be dismounted from Windows in the usual way. This is important to prevent data loss.

    4. Shared USB devices

      USB devices Part 1
      USB devices Part 2

    5. Running 041 Assignments in Ubuntu dosbox

      041 Assignments 1
      041 Assignments 2

    6. Running 041 Assignments in Windows Command Prompt

      041 Assignments 1
      041 Assignments 2
      041 Assignments 3

    7. Lecture Fri Sept 11, 2009 Sept 11, 2009 (sound quality weak)

    http://www.cs.uni.edu/~okane
    Homework
    1. Write an assembly language program that will sum the first 5 integers (beginning at 1) and print the total. Use the following code as an example.

               PRINT NOGEN
      BEGIN    BEGIN
               REGS
               L     R3,FIVE
               A     R3,THREE
               CVD   R3,DBL
               ED    RESULT,DBL+6
               WTO   RESULT
               RETURN
               LTORG
      FIVE     DC    F'5'
      THREE    DC    F'3'
      RESULT   DC    X'40202120'
      DBL      DC    D'0'
               END   BEGIN
      

      The code above loads 5 (in binary) into R3 then adds 3 to it then prints the result. The constants 3 and 5 are at the labels FIVE and THREE. The CVD instruction converts the binary in R3 to an intermediate forme known as PACKED DECIMAL. The ED instruction converts the PACKED DECIMAL to printable characters. The WTO macro writes the result. The initial value in the string RESULT is a pattern which tells the ED instruction how to do the conversion. The LTORG tells the assmebler to place literals at this point.

      Due: Friday Sept 11

    2. Below is a file of Hex. The first counter is the location counter and the second is the machine language code at the location.

      Using the Green Card JPG scans link to the course web page (near the bottom), convert the Hex machine language code to assembly language using the fully explicit notation.

      For example, the first line is:

      000058 90ECD00C

      90 is the op code for an STM instruction. An STM instruction is an RS instruction with the explicit format:

      STM R1,R3,D2(B2)

      The machine language layout for RS format instructions is given at the bottom of Green Card panel 2.

      Thus, the above code becomes:

      000058 STM R14,R12,00C(R13)

      Where E becomes R14, C becomes R12, D is R13. You can leave the displacement in Hex (not legal really but not a real problem).

      Due Mon Sept 28

      LOC CODE 000058 90ECD00C 00005C 50D0F014 000060 18ED 000062 41D0F010 000066 50D0E008 00006A 92D3D07D 00006E D202D07AD07D 000074 95D5D07A 000078 4770D070 00007C 92D4D07A 000080 58DD0004 000084 98ECD00C 000088 07FE

    3. Write the truth table for Problem 11 on page 227. What does the circuit do? Due Mon Oct 26.

    4. Do problems 10, 11 and 12 from page 423. Due: Mon Nov 16.
    Book: Tannenbaum, A. S., Structured Computer Organization, Pearson Prentice Hall, ISBN 0-13-148521-0.
    (Note: there are many sources for this book. The link to Amazon is for reference only.)

    On-Line IBM S/390 Principles of Operation (free)

    PC Assembly Language (free)

    Simulator S/390 Simulator for Win9x (Zip File)

    Create a directory named pc370. Copy this zip file to that directory and unzip

    Green Card Panels 1-3
    Panels 4-6
    Panel 7
    Panels 8-10
    Panels 11-13
    Panel 14
    Macros Images of class notes - IBM 390 Macros
    Sparc Images of class notes - Sparc architecture
    PDP-11 Images of class notes - PDP-11 architecture
    RISC Images of class notes - RISC architecture

    For later use:
  • Sparc Example 1
  • Sparc Example 2
  • Sparc Example 3 (note new functions)

    The following notice is required by the University:

    "The Americans with Disabilities Act of 1990 (ADA) provides protection from illegal discrimination for qualified individuals with disabilities. Students requesting instructional accommodations due to disabilities must arrange for such accommodation through the Office of Disability Services. The ODS is located at: 213 Student Services Center, and the phone number is: 273-2676."

    Because the Office of Disability Services has procedures in place to determine the validity of disability claims as well as the need for instructional accommodations, faculty are reminded that they are to direct all students with accommodation requests to the above listed office.

    UNDER NO CIRCUMSTANCE SHOULD A FACULTY MEMBER MAKE AN ACCOMMODATION INDEPENDENT OF THE OFFICE OF DISABILITY SERVICES.

    Questions may be directed to: Disability Services Coordinator, at 273-2676 or to this office at 273-2846.

    Kevin C. O'Kane / Computer Science Department / UNI / okane@cs.uni.edu