Computer Organization & Assembly Language
Computer instructions and assembly language, addressing modes, and instruction types: data movement, data manipulation and program control. Number representations and computer arithmetic. Computer organization: the datapath and control units, CPU operation and the instruction cycle.
Course Description
Computer instructions and assembly language, addressing modes, and instruction types: data movement, data manipulation and program control. Number representations and computer arithmetic. Computer organization: the datapath and control units, CPU operation and the instruction cycle.
The course introduces the Intel 8086/8088 processors and their internal architecture, and the x86 assembly language, so that students can carry out logical and arithmetic operations on the microprocessor. String instructions and graphical operations are also covered. The final weeks move from programming the processor to designing it: the internal architecture, the datapath and the control unit.
- Course code22342
- Credit hours3
- Prerequisite22241 Digital Logic Design
- DeliveryBlended
Learning Outcomes
On completing the course, students will be able to:
- Understand basic computer architecture and instruction sets.
- Examine how computers execute instructions and perform arithmetic operations.
- Examine how the datapath and control units of a CPU are designed.
- Understand number representation and apply computer arithmetic.
Weekly Topics
| Week | Topic | Covers |
|---|---|---|
| 1 | Introduction to microprocessors | Microprocessors vs. microcontrollers; the Intel x86 processor family |
| 2 | Intel IA-32 architecture & assembly language | What assembly language is; IA-32 basics; registers |
| 3 | Data transfer | Register-to-register and memory transfers; basic program structure |
| 4 | Number representations & computer arithmetic | Number systems review; introduction to the emulator and to computer arithmetic |
| 5 | Addressing modes | Direct and indirect addressing, with worked examples |
| 6 | Computer instructions | Data-transfer, loop and jump instructions |
| 7 | Arithmetic instructions | Addition, subtraction and logical operations |
| 8 | Multiply operation | Multiplication by shifting and in assembly; midterm exam |
| 9 | Divide operation | Division by shifting and in assembly; signed multiplication and division |
| 10 | State diagrams | Solving equations with MUL/DIV; flowcharts and state diagrams |
| 11 | String instructions | String-manipulation instructions and examples |
| 12 | The processor: internal architecture | Search and sort in assembly; the compilation process; datapath structure |
| 13 | The processor: datapath & control | Control-unit architecture; interfacing with the processor; clock-frequency calculations |
| 14 | Project discussions | Student project presentations and discussion |
Assessment
- Midterm exam30%
- Final exam40%
- Quizzes (8)20%
- Project and assignments (2)10%
Textbooks
- Kip R. Irvine, Assembly Language for x86 Processors, Pearson, 2014.
- David A. Patterson and John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, revised 4th ed., Morgan Kaufmann, 2011.
Video Lectures
All recorded lectures for the course are collected in one YouTube playlist, in teaching order.
Open the playlist on YouTube Start with lecture 1Course Materials
Course materials are hosted on Google Drive and open in a new tab. Download the course outline and the course road map, or browse the whole folder.
Slides
- Chapter 1PPT
- Chapter 2PPT
- Chapter 3PPT
- Chapter 4PPT
- Chapter 5PPT
- Chapter 6PPT
- Chapter 7PPT
- Chapter 8PPTX
- Chapter 9PPTX
- Chapter 9 (short version)PPTX
- Pipeline Hazards, animated (short)PPTX
- Pipeline Hazards, animated (short)PDF
Workbooks
- Topic 1: Variable DeclarationPDF
- Chapter 2: Addressing ModesPDF
- Arithmetic InstructionsPDF
- The StackPDF
- Conditional BranchesPDF
- Logical OperationsPDF
- Shift and RotatePDF
- Multiplication and DivisionPDF
- 8086 Assembly: Comprehensive WorksheetPDF
- 8086 Assembly: Restricted WorksheetPDF
- CPU Architectures GuidePDF
- CPU Architecture Guide and Worksheet (v2)PDF
- Single-Cycle Datapath WorksheetPDF
- Single-Cycle Datapath: Answer KeyPDF