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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/12/06 20:17
Read: times


 
#116129 - mr peter
Responding to: ???'s previous message
just define me also that
port 1 recive data from adc0808
convert in acc.
there is ur

Subject: another way:
Full Name: Peter Dannegger (Berlin Berlin)
Date: 12/May/06 11:10 pm (Modified at: 12/May/06 11:12 pm)
Read: 28 times-- Printable Version
Score: +1 (+1 Good Answer/Helpful)
; convert hex to ASCII

;input; A = byte
;output: A = low nibble
; B = high nibble

hex_asc:
mov b, #16
div ab ;A = high, b = low
call _heas1
xch a, b
_heas1:
add a, #-10
jnc _heas2 ;below 10
add a, #'A' - '0' - 10
_heas2: add a, #'0' + 10
ret

end



but output is that
if i used high nibble
so send B to lcd
am i right ????

List of 9 messages in thread
TopicAuthorDate
its not working            01/01/70 00:00      
   Easier to read            01/01/70 00:00      
   Have you tried a simulator?            01/01/70 00:00      
   It works            01/01/70 00:00      
      i have also that            01/01/70 00:00      
   another way:            01/01/70 00:00      
      cute            01/01/70 00:00      
      mr peter            01/01/70 00:00      
         simply...            01/01/70 00:00      

Back to Subject List