Ch3. instructions Flashcards
Data movement instructions
Copy data from one location to
another. - MOVE.W $1000,D0
Integer arithmetic and logical instructions
can be oneoperand
(e.g. complement), two-operand or three-operand
instructions.
ADD.B D0,D1 - Binary ADD D0 to D1
O AND.B #%11110000, D1 - Bitwise AND the contents of D1
Shift and rotate instructions:
left or right shifts and rotations.
ASL.B #1,D1 - shift left by one place the data in D1
Bit manipulation instructions:
operate on bit fields.
BSET #1,D2 - set bit 1 in D2 to logic 1
Floating-point instructions:
floating-point data movement,
arithmetic, comparison, square root, absolute value, and others.
Control transfer instructions:
consist primarily of jumps,
branches, procedure calls, and procedure returns. Some
systems have return from exception instructions.
O BNE LABEL - Branch to LABEL if result not zero.
System control instructions:
allow the user to influence
directly the operation of the processor and other parts of the
computer system.
O RESET - Provides a software controlled rest signal to rest of the
microcomputer.
Special function unit instructions:
perform particular
operations on special function units (e.g. graphic units).