Mikroone - Online Help
MSK R[x], R[y],b - Bitmasking
Operating Mode
R[x] :=0...0 R[y]b0...0
PC := PC + 1
Description
Takes Bit at position b of R[y], sets all other Bits of R[y] to 0 and saves result to register R[x].
Status Register
Zero - Bit := 1 if all Bits of R[y] are 0 after operation
Binary Command
15 14 13 12 11 |
10 9 8 |
7 |
6 |
5 4 3 |
2 1 0 |
10000 |
Adr(x) |
- |
b3 |
Adr(y) |
b2 b1 b0 |
Example
MSK R[5], R[2], 13
15 14 13 12 11 |
10 9 8 |
7 |
6 |
5 4 3 |
2 1 0 |
10000 |
101 |
- |
1 |
010 |
101 |