to BuschnicK about assembly...
you don''t need to understand anything about assembly to be a good programmer, but it really helped me a lot in the understanding of computer systems in general and bit operations in perticular. There is always some hardware in the end and a understanding of assembly for any hardware is a very good way to understand ALL datatypes since programming always falls back down to that level, and noone can argue about that
ohh... and sorry about the unsigned keyword beeing leftout...
I still argue that knowing assembly is a good thing, not a bad thing.
this is how you can make a 32 bit color from 4 8bit VALUES (chars or whatever)
u_int_32 color( 0xFF<<24 | 0x23<<16 | 0xA3<<8 | 0x3B );
this is now true:
color == 0xFF23A33B;
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement