maybe i don't understand what you need but lets assume
B1= 11110000 bin => F0 hex => 240 decimal
B2=00001111 bin => 0F hex => 15 decimal

even if you define
B1=$F0
OR
B1=%11110000
OR
B1=240

It do the same thing.

IF B1=$F0 then....
IF b1=%11110000 then ....
IF B1=240 then .....

Maybe i need to sleep, or it's really what you need