Bit Manipulation Flashcards
operand instruction for logical and
AND
operand instruction for logical or
ORR
operand instruction for logical not
MVN
operand instruction for logical exclusive or
EOR
what instruction can be used to set
AND
what does set mean
change to 1
what does clear mean
change to 0
uses for bit manipulation
working with floats]
writing code that controls hardware eg turn on/off LEDS
if you have X AND 0 what will this result in
0
if you have X AND 1 what will this result in
X
if we want to clear bits in positions 3 and 4, what do we do
use AND
with a mask which contains all 1s and only 0s in the positions we want to clear
what does the BIC function do
clears with the mask we have already defined
if we want to set bits in positions 3 and 4, what do we do
use ORR
with a mask which contains all 0s and only 1s in the positions we want to set
if you have X OR 1 what will this result in
1
if you have X OR 0 what will this result in
0