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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/22/06 23:07
Read: times


 
#114758 - BCD
Responding to: ???'s previous message
The lower nibble has a number 0 to 9, Same for the upper one.
So 1 byte holds 0 to 99.

So assuming 99d (63hex) would be 153( 99h)

One way divide by 10 and save the remiander
Then multi by 16 and add the remainder.

But you are using ASM
You could SWAP nibbles to avoid the multiplication.
Look at the DAA instruction if you are doing BCD math.



List of 14 messages in thread
TopicAuthorDate
sending data            01/01/70 00:00      
   Masking            01/01/70 00:00      
   Yes Masking            01/01/70 00:00      
      masking            01/01/70 00:00      
         Use the c flag to handle bit's            01/01/70 00:00      
            charles            01/01/70 00:00      
   The procesor does not stop at an 'end' s            01/01/70 00:00      
   bcd            01/01/70 00:00      
      Some routines in the code library            01/01/70 00:00      
      BCD            01/01/70 00:00      
         bcd            01/01/70 00:00      
            Talk to me via skype if you wish            01/01/70 00:00      
   Sending            01/01/70 00:00      
      ORL wont work            01/01/70 00:00      

Back to Subject List