Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/17/09 05:16
Read: times


 
Msg Score: -1
 -1 Didn't Search First
#164684 - not hard when talking in human language or C...
Responding to: ???'s previous message
not hard when talking in human language or C...
It is really not that hard...
for 8bit number:
divide by 100, quotient is 100's
get remainder divide by 10, quotient is 10's and remainder 1's
Even in assembly is easy to do this for 8bit number. Just add the correct ASCII value and its done.

But, I take me thinking on how do this in assembly for 16bit number.
I forgot to say, a clean way to do this, because I have seen some codes that goes incrementing a number until it is equal to value needed... SO much cycles thrown away.

List of 25 messages in thread
TopicAuthorDate
16bit number to ascii            01/01/70 00:00      
   Base conversion.            01/01/70 00:00      
      Number Base (Radix) and Place Value            01/01/70 00:00      
      ASCII            01/01/70 00:00      
         Right ... I forgot about that part.            01/01/70 00:00      
            What I'd wonder ...            01/01/70 00:00      
               Is it relevant?            01/01/70 00:00      
                  That's somewhat of a description            01/01/70 00:00      
                     D'oh! You've given it away            01/01/70 00:00      
                        Well ... not quite ...            01/01/70 00:00      
                           That was step 1.            01/01/70 00:00      
      not hard when talking in human language or C...            01/01/70 00:00      
         Irrelevant            01/01/70 00:00      
   Op code?            01/01/70 00:00      
      Ah, yes ... the Fairchild FND-70 driver ...            01/01/70 00:00      
         nybble-to-7-segment encoder            01/01/70 00:00      
            if...            01/01/70 00:00      
               30 years ago            01/01/70 00:00      
            That's a BIG if            01/01/70 00:00      
               Serial output            01/01/70 00:00      
                  That might work in SOME cases ...            01/01/70 00:00      
                     But I'm not that fast            01/01/70 00:00      
                        What about infrequently recurring events?            01/01/70 00:00      
         FND-70 driver? Luxury!            01/01/70 00:00      
            Decoding DTMF            01/01/70 00:00      

Back to Subject List