Computer Science 237 |
Lecture 6: MC68K Architecture, MC68K Instruction Set, Assembly Programming
Date: September 21, 2005
&
, |
, ~
,
note that you can process multiple bits at once with these, likely
avoiding shifts
However, some instructions work only on one type or the other.
8 bits, 5 of which have a specific meaning: Z=Zero, C=Carry, V=oVerflow, X=eXtend, and N=Negative.
We will use all but X.
(So we could get away with 31 bits)
68010, 68030, 68040...
(See /usr/cs-local/share/cs237/docs.)
MOVE.L #1, %D4 MOVE.L %D4, %D3
ADD.W #6, %D2 ADD.W %D4, %D2
Translation: shiftyproduct.c example.