Computer Science 237
Computer Organization
Williams College
Fall 2005
Lecture 18: More Assembly Programming: Arrays
Date: October 24, 2005
Announcements
Lab 6 is due. Late submission procedures.
Lab 7 out. Back to assembly programming.
No formal lab meetings this week.
End of class today: halftime.
Agenda
Arrays in assembly
address register indirect with displacement and indexing usage:
d(An,Dm.w)
An
is base address of the array.
Dm
is (word) wide register that provides the byte offset of element from base address.
d
is selected to make index of first element 0 bytes away from base address
Examples
swaparray