significant bit needs to be determined. 101110112 ↑
pl
e
The masking process can perform this task by applying the AND logical operator to the data with a mask 001000002. Original Data 101110112
Result
001000002 AND
m
Mask
001000002
ft
sa
In this example, the value of the third most significant bit is 12. Had the value been 02, then the AND logical operation would have returned 02.
Clearing registers
D
ra
When data stored in registers needs to be cleared, the AND logical operator may be applied. In the following example, data is stored in an 8-bit register: 100110012 By applying the AND logical operator on the data above with a clear mask, the register will be cleared. Original Data
100110012
Mask
000000002 AND
"******ebook converter DEMO - www.ebook-