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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/13/07 08:28
Read: times


 
#140648 - Conversion
Responding to: ???'s previous message
You should do like this.
Put in two separate bytes the number recieved i.e.
06 in one byte (after conversion from ASCII if recieved from
keyboard) and 03 in another.

code is like this
Mov A, Byte1
Mov B,#10d
MUL AB
the product will be always less than 90d (as recieved from remote no.9 is max) so dont bother about high byte.
Next
ADD A,Byte0

This will give you 63 in Hex format i.e. 3Fh.

This is from number system only.

List of 18 messages in thread
TopicAuthorDate
Dec to Hex Converter.            01/01/70 00:00      
   What do you mean?            01/01/70 00:00      
      Dec to Hex Converter.            01/01/70 00:00      
         Think about it!            01/01/70 00:00      
            Dec to Hex Converter.            01/01/70 00:00      
               Think about it!            01/01/70 00:00      
   Try the code Library            01/01/70 00:00      
   Not understand            01/01/70 00:00      
      Gee Wiz            01/01/70 00:00      
         Olympic sprinting before crawling?            01/01/70 00:00      
            You are right, and ...            01/01/70 00:00      
               GREAT            01/01/70 00:00      
               Dechex            01/01/70 00:00      
                  I would call this...            01/01/70 00:00      
                  What is a "4m remote" ?            01/01/70 00:00      
      Back to basics            01/01/70 00:00      
      Example            01/01/70 00:00      
      Conversion            01/01/70 00:00      

Back to Subject List