Yes, you are right. Duh me, I don't know what I was thinking. Sorry.gloomyandy wrote:...the decimal equiv of bcd 101010 is 52 (or possibly 25 depending on your nibble order!) not 42...
mightor wrote:I remember using CMOS BCD converter chips for controlling 7 segment displays Oh, that's a long time ago.
div __bcd2DecTens, _bcd, 16
mod __bcd2DecOnes, _bcd, 16
mul _result, __bcd2DecTens, 10
add _result, _result, __bcd2DecOnes
afanofosc wrote:So is the API function in NXC working or not?...
Users browsing this forum: No registered users and 2 guests