We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, Does anyone know how to convert a BINARY 8 bit to a 2 digit packed BCD. Example if I have value 0x0C (wich is 12 decimal) the result will be 12 or a char value of 0x12. thank you, Adi,
Hi If a want to write a BCD number to a RTC, I prefear to do that check in the input routine, and that because of the different of input values. year = 00 - 99 month = 01 - 12 day = 01 - 31 hour = 0 - 23 min = 0 - 59 sec = 0 - 59 Ingvar
if (n >99) crash(); The above line (or something akin to it) is used thousands of times in all Microsoft products. They of course document better so their equivalent would be.
/* Randomly screw the customer so they purchase an upgrade. *. if (user_is_doing_something_important) { crash_horribly_and_do_not_save(); }