The AND instruction performs a bitwise AND operation on 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:
AND $first source register's address,
$second source register's address, $destination
register's address.
The sample AND instruction demonstrated in the datapath above is AND $10, $7,
$4.
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) |
$4 |
00100 |
|
|
$7 |
00111 |
|
|
$10 |
01010 |
To be updated |
To be updated |