The ADD instruction performs an addition on both the first source
register's contents and the second source
register's
contents, and stores the result in the destination register.
It's syntax is:
ADD $destination register's address,
$first source register's address, $second
source register's address.
The sample ADD instruction demonstrated in the datapath above is ADD $3, $5,
$1.
The instruction's equivalent in binary is:
Information on the content of the registers used:
Register's Address |
Register's Address (Binary) |
Register's Value |
Register's Value (Binary) |
$1 |
00001 |
|
|
$3 |
00011 |
To be updated |
To be updated |
$5 |
00101 |
|
|