The OR instruction performs a bitwise OR operation 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:
OR $destination register's address,
$first source register's address, $second
source register's address.
The sample OR instruction demonstrated in the datapath above is OR $13, $9,
$16.
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) |
$9 |
01001 |
|
|
$13 |
01101 |
To be updated |
To be updated |
$16 |
10000 |
|
|