Assembly Language Programming




Lecture 1

What is Assembly?

In-Class Exercise: Getting Started

Homework


Lecture 2

The IA-32 Platform

In-Class Exercise: The CS220 Library

Homework


Lecture 3

Developer Tools

In-Class Exercise: Using the Debugger

File needed for exercise: cpuid.s

Homework


Lecture 4

Beginning Assembly

In-Class Exercise: Addressing Modes


Lecture 5

Intermediate Assembly

In-Class Exercise: Arithmetic Instructions


Lecture 6

Advanced Assembly

In-Class Exercise: Using the Stack

File needed for exercise: exer06.s

Homework


Lecture 7

FPU Programming

In-Class Exercise: FPU Arithmetic

Example: sum_array.s


Lecture 8

C++ and Assembly

In-Class Exercise: C++/Assembly Interfacing


Lecture 9

Using Arrays


Lecture 10

C++ and Assembly

README

Example Programs:

Makefile

asmxmpl01.cpp, asmxmpl02.cpp, asmxmpl03.cpp

asmxmpl04.cpp, asmxmpl05.cpp, asmxmpl06.cpp


Resources

The CS220 Library


GAS Directives

GAS Assembly Language

FPU Instruction Set

Using AS