Hex Value $24 to DEC value 24
Humpe
Posts: 10
Hi
I have encoutered a small problem. The output from my clock is in HEX, $24 is the minutes or seconds in DEC 24. Now i want to represent the output value binary with diods but of course it doesnt get quite right.
I need to transform the value $24 to the decimal value 24 (or the binary value 24). Is there short solution for this with Pbasic ?
I have encoutered a small problem. The output from my clock is in HEX, $24 is the minutes or seconds in DEC 24. Now i want to represent the output value binary with diods but of course it doesnt get quite right.
I need to transform the value $24 to the decimal value 24 (or the binary value 24). Is there short solution for this with Pbasic ?
Comments
-Phil
(You dont want to see my lookup table for this :-))
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I'll see your twelve bytes and raise you four! ('Forgot about the NIBs!)
___________
Humpe,
Use Tracy's method. It generates less code.
-Phil