Last active
March 28, 2016 21:45
-
-
Save Harakan/817476427172c5b898b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top_mask=0xF0; | |
bot_mask=0x0F; | |
//You provide nibble_top and nibble_bot | |
the_byte = (nibble_top<<4)&top_mask; | |
the_byte |= (nibble_bot&bot_mask); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment