- Limited number of special locations built directly into the hardware.
- Operation can only be performed on Registers.
1) Since registers are directly in hardware,they are very fast(faster than 1 bilionth of a
second).
1) Since registers are in hardware,there are a predetermined number of them.
- Solution : MIPS code must be very carefully put together to efficiently use registers.
- Two sources and one destinations.
1) Regularity makes implementation simpler.
2) Simplicity enables higher performance at lower cost.
1) anything from hash mark to end of line is a comment an will be ignored.
1 2,3,4
where :
2)Operand getting result(destination).
3)1st Operand for operation(source 1).
4) 2nd Operand for operation(soruce 2).
1) 1 operator , 3 operands.
2) Because to keep hardware simple via regularity.
1) example: add $s0, $s1, $s2(in MIPS).
2) Equivalent to: a = b + c(in C).
3)Where MIPS registers $s0, $s1, $s2 are associated with C variables a,b,c.
1) example: sub $s3, $s4, $s5(in MIPS).
2) Equivalent to: d = e - f(in C).
3)Where MIPS registers $s3, $s4, $s5 are associated with C variables d,e,f.