The SLT instruction sets the destination register's content to
the value 1 if the first source register's contents are
less
than the second source register's contents. Otherwise, it is set
to the value 0.
It's syntax is:
SLT $destination register's address,
$first source register's address, $second
source register's address.
The sample SLT instruction demonstrated in the datapath above is SLT $17, $19,
$22.
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) |
$17 |
10001 |
To be updated |
To be updated |
$19 |
10011 |
|
|
$22 |
10110 |
|
|