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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/13/08 14:59
Read: times


 
#158241 - Extracting high nibble
Responding to: ???'s previous message
It extracts the high-order nibble of the variable "mins".

If "mins" is stored in BCD format, i.e. one decimal digit stored in the high nibble and one decimal digit in the low nibble (such as 00 .. 59) you will get the tenths part of the minutes into A. If mins stores a binary value of 0 .. 255 minutes, then you will just divide that number with 16 and store the result in A.

List of 7 messages in thread
TopicAuthorDate
8051 led display            01/01/70 00:00      
   Err            01/01/70 00:00      
      Extracting high nibble            01/01/70 00:00      
   HELP ME            01/01/70 00:00      
      Did you read my post?            01/01/70 00:00      
      without kwledge of the hardware            01/01/70 00:00      
      indentation            01/01/70 00:00      

Back to Subject List