Computer Science 237 |
Lecture 07: Lecture Title
Date: Lecture Date
.w
)
%d3
(%a3)
the effective address of the data is found in an address register;
used for pointers
4(%a6)
the effective address of the data is the contents of the register
plus an offset; used for fields in a structure.
4(%a4,%d1.w)
effective address is the address register plus the contents of the
displacement register plus the displacement; useful for arrays
-(%a7)
that
is -(%sp)
Suppose you're manipulating data with n bytes (1=b,2=w,4=l)
Then
(%a7)+
that
is (%sp)+
Suppose you're manipulating data with n bytes (1=b,2=w,4=l)
Then
#4
We've seen and used this. There is no effective address.
0x4000
4(%pc)
or loop
(a
label)
this allows relocatable code - jumps are relative to PC.