Last active
January 27, 2018 11:32
-
-
Save fortheday/ac8ef686cb29449245949cca0966ded1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
unsigned char chVal = 1; // ch로 하면 CountHigh와 겹치므로 주의. | |
__asm ror chVal, 1; Rotate Right | |
for (unsigned char bitMask = 1 << 7; 0 < bitMask ; bitMask >>= 1) | |
_putch(chVal & bitMask ? '1' : '0'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment