CMSC 311 - Computer Organization and Assembly Language Programming

Spring 2009

 

Syllabus     Announcement              Assignment         Software   Lecture notes

 

Instructor: Dr. Ju Wang ( jwang3@vcu.edu )
                    Office: 4238 Eng Bldg.
  

Class meetings: TR2:00-3:15

Office Hours:    MW 10:00-11:00, or by appointment.

 

TA:      Jay Vanzara

Office hours:     M-TR, 11:00-12:30

Room:              E2241

Email:               vanzarajn@vcu.edu

 

Projects/Assignments:

Assignments are collected at the beginning of the lecture on the due day. Late work will NOT been accepted.

Project Submission: Email your program to TA and turn in the printed program on the due day.

 

HW#1, Due Jan 27, partial solutions

HW#2, Binary addition, Due, Feb 12

            input file: hw2input.txt

            Your program should be able to handle long binary string up to 100 bits. I will test your program with long binary strings.

            Your program should perform the binary addition bit-by-bit (using a for loop for example) and

            take care of the carry bits.

            HW2 programming hint

HW#3  chap 3, problem3 10,11,12,19,20, for 10,11, 12, you must show steps similar to table 3.2 (pg 127). due Feb 24

HW#4   write assembly program to print the smallest integer number in a given array.

·        You code must call a compare function provided here when compare two integer number

·        The array is provide in this c++ file

·        Due:  First class after break.

·        Here is the solution , notes

1.      the code inside the main assembly.asm is based on the assembly code from myarry.asm (generated from myarray.cpp)

HW#5  Do problems 17,18,19,20 of chapter 4. due: April 7.

 

Program submission:

o      If you have to send zipped file, change the file extension to something other than .zip

Announcement:

·        Final exam study guide.

·        March 3, hw#3 solution key

·        March 2, testing data for hw2 and part of the solution from the submitted hw.

·        Feb 27: midterm examine is scheduled on March 5, here is the midterm study guide

·        Feb 19: Assembly programming exercise

o       Download the sample project , Extract to you local driver

o       modify the assembly code so it print two lines “hello world” “welcome”

o       You need to use visual studio 2008 to open and run the program

o       If you don’t have VS 2008, download VS 2008 Express from Microsoft and install on you computer.

·        Feb 17: Real Assembly code and C code

·        Jan 22: question 13 of hw#1 update: 8-1 encoder should be 8-3 encoder, 4-1 encoder should be 4-2 encoder.

·        Jan 12

o       Binary Number, Two’s compliment number, number conversion note1 and note2.