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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/09/04 19:38
Read: times


 
#62270 - RE: HEX TO ASCII CODE
Responding to: ???'s previous message
converting 8-bit binary to ascii
;upon return r5,r1,r0 have ascii data (r5=MSB and r0=LSB)
conv: mov b,#10
div ab ;divide by 10
mov r0,b ;save low digit
mov b,#10 ;divide by 10 once more
div ab
orl a,#30h ;make 1st digit an ascii
mov r5,a ;save the ascii (MSD)
mov a,b
orl a,#30h ;make 2nd digit an ascii
mov r1,a ;save the ascii
mov a,r0
orl a,#30h ;make 3rd digit an ascii
mov r0,a ;save the ascii (LSD)
end

List of 13 messages in thread
TopicAuthorDate
HEX TO ASCII CODE            01/01/70 00:00      
   RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      
RE: HEX TO ASCII CODE - Peter            01/01/70 00:00      
RE: HEX TO ASCII CODE - Peter            01/01/70 00:00      
RE: HEX TO ASCII CODE - Peter            01/01/70 00:00      
RE: HEX TO ASCII CODE            01/01/70 00:00      

Back to Subject List