On 2/17/07, Dave McGuire <[EMAIL PROTECTED]> wrote: > On Feb 17, 2007, at 12:24 PM, Mark Rages wrote: > >> There is no printf format specifier for binary in C... You have to > >> write such > >> a function yourself. > > > > That's not what I asked. In Microchip asm, I can type an integer > > constant in binary as b'00000000'. I was wondering if SDCC supports > > something similar. > > I do stuff like that in hex. I find that it's pretty much > "automatic" in my brain if I visualize four bits at a time being one > hex digit. > > -Dave >
That's what I've been doing, but for a lot of things in PIC programming, each bit of a register means something different. I think it would make for clearer code to just show it in binary. Regards, Mark [EMAIL PROTECTED] -- You think that it is a secret, but it never has been one. - fortune cookie ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
