NJIT Course SYLUBUS Spring 2010 Course: CPT 315 - Computer Architecture for Computer Technology Text: Assembly Language for Intel-Based Computers, 5/E Kip Irvine ISBN-10: 0132383101; Publisher: Prentice Hall 0123706068 Prerequisite: CPT 310. Computer design fundamentals for computer technology. Instructor Name: Dr. Washah Contact Email: sal.f.washah@njit.edu COURSE DESCRIPTION: Von Neumann computer architecture: processor, memory and I/O. Processor organization: registers, ALU, and control. Memory organization and memory bus, I/O organization: I/O bus, memory mapped I/O. Number representations and ALU designs. Fundamentals of assembly language, lab exercises in assembly language are used throughout to illustrate concepts. Objective: Introduce computer system organization and design at a level that provides the foundations for the student to understand computer functionality and needs, and to implement and test assembly language programs Content: Hardware Architecture Components Assemblers, Compilers, Operating Systems, and Interpreters Instruction Sets Assembly Programming Languages Architecture Extensions and Performance Evaluation Homework Assignments: Assignments will reinforce lecture concepts and demonstrate application of critical thinking skills. Collaboration is encouraged, but you must give credit where credit is due. All assignments must be done independently and written (typed) in your own words. Late assignment will penalized 20 points less. Plagiarism Policy: Students are encouraged to discuss homeworks and projects with each other. However, everything that is turned in for each assignment and/or project, must be your own work. In particular, it is not acceptable to: Copy in part or in totality another person's assignment and submit it as your own work; Get someone else to do all or a part of the work for you; Submit the work of a group as your own work. These acts are plagiarism and will not be tolerated in this course. Grades: The tentative percentage of points allocated to the major graded components is shown below. Student grades will be determined based on a straight scale. Weekly Homework assignments (Individually) : 35% Midterm Projects (Individually): 25% Final Exam (Project Four) (Individually): 40% Total: 100% Instructor Discretion: The instructor reserves the right to modify policies to improve the execution of this course. Homework 1. Assignment One: Due date 2/2/2010 (at 11:00 PM): Chapter One and Chapter Two a. Read through the first chapter. b. Textbook: Exercises: 1.3 (11-29); 1.4 (6-9) c. Read through the second chapter. d. Textbook: Exercises 2.1 (9-17); 2.2 (1-16); 2.3 (1-12). e. Complete the exercise below in addition to chapter one and two assignment from the book. Work alone You are expected to do your own work on all homework assignments. You may (and are encouraged to) engage in general discussions with your classmates regarding the assignments, but specific details of a solution, including the solution itself, must always be your own work. Exercise #1: Conversions Perform the following conversions, and show the details of your work: 1. 2. 3. 4. hexadecimal 4AD3 into binary binary 1011110101011 into hexadecimal decimal 231 into binary decimal 677 into hexadecimal 5. hexadecimal A32 into decimal Exercise #2: Two's Complement Give the binary 16-bit two's complement representation of the following decimal integers, and show the details of your work: 1. 2. 3. 4. 5. 341 -1 0 -56 -101 Give the hexadecimal 32-bit two's complement representation of the following decimal integers, and show the details of your work: 1. 2. 3. 4. 5. 783 -1 -1,321 -32 421 Give the decimal value of the following 12-bit two's complement hexadecimal representations, and show the details of your work: 1. 2. 3. 4. 5. A34 81F D73 7AA 63A Exercise #3: Additions and Subtractions Perform the following binary arithmetic operations, and show carries: 1. 2. 3. 4. 1010111 + 101101 1000010 + 0111011 1101110 + 1111011 0001111 + 1010101 Perform the following hexadecimal arithmetic operations, and show carries: 1. 2. 3. 4. A3F1E + 32BAA FF31A + BB4FB 13111 + FFFFF 32AAA + F0F0F Extra Credit if complete all the questions of the chapter one & two 2. Assignment Two: Due date 2/16/2010 (Monday at 11:00 PM): Chapter three & Chapter Four a. Read through chapter three and four. b. Textbook: Exercises: 3.2 (1-9); 3.3 (1-10); 3.4 (7-12). c. Textbook: Exercises: 4.2 (4-15); 4.3 (6-12); 4.5 (7-10). Extra Credit if complete all the questions of the chapter three & four 3. Assignment Three: Due date 3/9/2010 (at 12:00 PM): Chapter five & Six. a. b. c. d. Read through chapter five & Six.. Textbook: Exercises: 5.3 (6-11); 5.6 (4 & 5); 4.5 (7-10). Textbook: Exercises: 6.2 (1-10); 6.3 (1-14); 6.4 ( 4 & 5); 6.5 (1-5). Write an assembly program called hw3_ex1, stored in file hw3_ex1.asm, that prompts the user to type a 5-character string. The program reads the first 5 characters of that string and prints two strings. The first string contains the 5 characters entered by the user, but in reverse order. The second string contains the 5 characters entered by the user, but whose ASCII code has been decremented by 32. Match the example shown below, where user input is shown in bold face: % ./hw3_ex1 Enter a 5-character string: hguot String #1: tough String #2: HGUOT You may assume that the user will always type exactly 5 characters followed by a carriage return (no need to deal with errors, etc.). Reading a character from the keyboard is done via the read_char macro (see page 17 of the textbook for a description). So you'll have to call this macro 5 times to get the 5 characters. Remember that when you print a string it should be null-terminated. So, to store a 5-character string that you will print you need to store it in 6 bytes, with the last byte equal to 0. Work alone You are expected to do your own work on all homework assignments. You may (and are encouraged to) engage in general discussions with your classmates regarding the assignments, but specific details of a solution, including the solution itself, must always be your own work. Extra Credit if complete all the questions of the chapter Five & Six MIDTERM PROJECT DUE DATE ON 3/30/2010 (AT 11:00 PM). Assignment Four: Due date 4/13/2010 ( at 11:00 PM): e. Read through chapter Seven & Eight. f. Textbook: Exercises: 7.2 (1-14); 7.3 (1-6); 7.4(11-15); 7.6 (5 &6) g. Textbook: Exercises: 8.3 (11-15); 8.4 (9-13); 8.5(4-6). Extra Credit if complete all the questions of the chapter Seven & Eight 4. Assignment Five: Due date 4/27/2010 (at 11:00 PM): Chapter nine & Ten. a. Read through chapter Nine & Ten. b. Textbook: Exercises: 9.4 (1-7); 9.5 (1-8). c. Textbook: Exercises: 10.1 (13-15); 10.2 (11-15); 10.3(8-15). Extra Credit if complete all the questions of the chapter nine & Ten FINAL DUE DATE WILL BE ON 5/11/2010 AT 11:00 PM.