|
|
11.10.4 Recognizing Special Instruction or Modes
Instructions that ADD one can often be replaced by an increment (for machines that
have and increment instruction)
ADD #1, Reg2
may be substituted with
INCREMENT Reg2
Sometimes instructions can be combined be looking for the longest number of
operators that can be turned into a single instruction. For example,
ADD Reg1, Reg2
MOVE Reg2, A
can be changed on some machines to
ADD Reg1, Reg2, A
Clearly, these cases are both source language dependent and machine dependent.
|