This chapter discusses the MIPS instructions for performing 32-bit integer addition and subtraction. Some topics of integer representation with bit patterns are reviewed.
add
and addu
instructions. addi
and addiu
instructions.sub
and subu
instructions.addi
to load a register with a negative integer.Say that a processor has a full set of bit manipulation instructions. Can it do arithmetic with these instructions?