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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/18/03 14:30
Read: times


 
#48715 - RE: Converting Hex to Decimal in Hex
Responding to: ???'s previous message
I think there is a bug in your program.
Try to insert 35H, the result is 47H.

3H * 16H =

ANL A, #0F0H ; a = 30h
SWAP A ; a = 3h
MOV B, #16H ; b = 16h
MUL AB ; 3h * 16h = 42 (not 48)
ADD A, R3 ; 42 + 5 = 47
DA A

List of 14 messages in thread
TopicAuthorDate
Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
         RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
            RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      

Back to Subject List