Quick question: Logic w/ hex numbers

pX

Golden Member
Feb 3, 2000
1,895
0
71
Alright, I just need someone to jostle my memory here. To do a logic operation on a hex (or octal, or decimal I suppose); one converts to binary then does a bit by bit comparison. Like:
$F2 AND $16

That is:

1111 0010 AND 0001 0110 = 0001 0010 = $12

Is that correct? I am feeling stupid for forgetting this, haven't seen this stuff for a year and half now..