R
Rajat Mitra
Guest
Hi,
Does anyone know what the hardware implementation differences are in the
MIPS instructions -
add and addu.
I understand that "add" causes overflow and "addu" doesn't as per the ISA
details. However in add -
add rd,rs1,rs2
rs1[31] and rs2[31] are treated as sign bits; while the actual numbers to be
added are rs1[30:0] and rs2[30:0].
Is it true that in -
addu rd,rs1,rs2
rs1[31:0] and rs2[31:0] are the actual numbers and no sign bits exist ??
Thanks,
Raj
--
Rajat Mitra
ChipWrights Inc.
2150 Washington Street
Newton, MA 02462
Tel - 617 928 3123
Does anyone know what the hardware implementation differences are in the
MIPS instructions -
add and addu.
I understand that "add" causes overflow and "addu" doesn't as per the ISA
details. However in add -
add rd,rs1,rs2
rs1[31] and rs2[31] are treated as sign bits; while the actual numbers to be
added are rs1[30:0] and rs2[30:0].
Is it true that in -
addu rd,rs1,rs2
rs1[31:0] and rs2[31:0] are the actual numbers and no sign bits exist ??
Thanks,
Raj
--
Rajat Mitra
ChipWrights Inc.
2150 Washington Street
Newton, MA 02462
Tel - 617 928 3123