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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/20/01 07:38
Read: times


 
#16719 - RE: ASCII to decimal or hexadecimal routine
Before this rotine yo must store the three bytes recived trought serial in CENTENA DECENA UNIDAD, sub the value '0' to every digit to convert the ASCII value to numeric. and:

CONVNUM: MOV B,#100
MOV A,CENTENA
MUL AB
MOV NUMERO,A
MOV B,#10
MOV A,DECENA
MUL AB
ADD A,NUMERO
ADD A,UNIDAD
MOV NUMERO,A
RET
The result is in numero
'como se esperaba'.

Saludos.

List of 6 messages in thread
TopicAuthorDate
ASCII to decimal or hexadecimal routine            01/01/70 00:00      
RE: ASCII to decimal or hexadecimal routine            01/01/70 00:00      
RE: ASCII to decimal or hexadecimal routine            01/01/70 00:00      
RE: ASCII to decimal or hexadecimal routine            01/01/70 00:00      
RE: ASCII to decimal or hexadecimal routine            01/01/70 00:00      
RE: ASCII to decimal or hexadecimal routine            01/01/70 00:00      

Back to Subject List