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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/07/03 09:22
Read: times


 
#41001 - RE: any one has better option
Responding to: ???'s previous message
Please READ before asking

My last post code adapted to your specific problem:

;Convert from binary to 7 segments BCD:

mov a,number
mov b,#100
div ab
mov hundreds,a
mov a,b
mov b,#10
div ab
mov tens,a
mov units,b

mov dptr,#table
mov a,tens
movc @a+dptr
mov Px,a
mov a,units
movc @a+dptr
mov Py,a
ret

Table:
db 3FH
db 6FH
db 5BFH ;YOU WRITE this value is wrong!!!
db 4FH
db 66H
db 6DH
db 7DH
db 07H
db 8FH
db xxh ;WHERE is the nine value???


List of 12 messages in thread
TopicAuthorDate
any one has better option            01/01/70 00:00      
   RE: any one has better option            01/01/70 00:00      
   RE: still the same ...            01/01/70 00:00      
   RE: any one has better option            01/01/70 00:00      
   RE: any one has better option            01/01/70 00:00      
   RE: any one has better option            01/01/70 00:00      
   RE: any one has better option            01/01/70 00:00      
      RE: any one has better option            01/01/70 00:00      
         RE: any one has better option            01/01/70 00:00      
         RE: any one has better option            01/01/70 00:00      
            i think i got it...            01/01/70 00:00      
   RE: any one has better option            01/01/70 00:00      

Back to Subject List