Integer Arithmetic Instructions
These instructions operate on registers. The first operands are source registers A and B , followed by the destination register D . The result of the operation on A and B is put into the destination register D .
| add | A,B,D | A + B &rarr D | ||
| sub | A,B,D | A - B &rarr D | ||
| smul | A,B,D | A * B &rarr D | ||
| sdiv | A,B,D | A / B &rarr D | ||
| cmp | A,B | compare A - B , set condition | ||
| and | A,B,D | A &and B &rarr D | ||
| or | A,B,D | A &or B &rarr D | ||
| not | B,D | ¬ B &rarr D | ||
| neg | B,D | - B &rarr D | ||
| mov | B,D | B &rarr D | ||
The operand B may be replaced by a constant value in the range MINIMMEDIATE to MAXIMMEDIATE (-4096 to 4095):
mov 7,%l1 ! 7 -> %l1
Contents    Page-10    Prev    Next    Page+10    Index