I have a single 8-bit byte where each bit represents whether a directly-mapped item is 'included' or not. An example:
I would think it's something pretty simple but I haven't been able to nut it out or find anything like it in any of my books or any net searches.$actions = " ABCDEFG"; $item = 0x37; # ...or 00110111b $newitem = &SomeMagic($item); # ...giving " BC EFG"
Any suggestions?
Thanks.
In reply to Decoding Mapped Bitfields by ozboomer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |