??? 02/08/09 05:02 Read: times |
#162181 - But '0' - 0x30 is zero :) Responding to: ???'s previous message |
If you don't need to go directly to printable characters when you split the number into digits, then you can drop the extra code.
'0' is another way of writing 0x30 or 48. So no need to add '0' and then directly remove 0x30 - the compiler will most probably catch and skip these two steps, but they are noise in the sourcecode. |
Topic | Author | Date |
Looking for a fast elegant solution to an SAA1064 | 01/01/70 00:00 | |
several ways | 01/01/70 00:00 | |
Simple Table Lookup | 01/01/70 00:00 | |
Constructing the table symbolically | 01/01/70 00:00 | |
That looks like it will do the trick | 01/01/70 00:00 | |
Ok I'm here now....... | 01/01/70 00:00 | |
first convert to decimal, then to ASCII | 01/01/70 00:00 | |
So... | 01/01/70 00:00 | |
Keep track of binary/BCD/hex/ASCII | 01/01/70 00:00 | |
Final answer and it works | 01/01/70 00:00 | |
But '0' - 0x30 is zero :)![]() | 01/01/70 00:00 | |
not exactly | 01/01/70 00:00 |