Help
Advanced Member level 2
- Joined
- Feb 15, 2005
- Messages
- 617
- Helped
- 7
- Reputation
- 14
- Reaction score
- 3
- Trophy points
- 1,298
- Activity points
- 7,065
Hi,
I have 8bits binary number. There is the pattern for the number. But how do i make a simple and more efficient equation without using "<<" shift operator in my code?
ex.
4h = 'num' .....; // how to use the 'num' value 1 to calculate out the 4hex num?
Thank for sharing..
I have 8bits binary number. There is the pattern for the number. But how do i make a simple and more efficient equation without using "<<" shift operator in my code?
Code:
num binary num hex num
0 0000 0001b 1h
1 0000 0100b 4h
2 0001 0000b 16h
3 0100 0000b 64h
ex.
4h = 'num' .....; // how to use the 'num' value 1 to calculate out the 4hex num?
Thank for sharing..