salamah99
Newbie level 5
I have an example like :
movlw D'1'
movwf digit1
movlw D'2'
movwf digit2
movlw D'3'
movwf digit3
movlw D'4'
movwf digit4
movlw D'5'
movwf digit5
I want a function that converts these ascii digits to a decimal two bytes number which should be 12345, note that this is only an example, I want to be able to store any number less than or equal to 65535 , i am trying to make it done but nothing works
movlw D'1'
movwf digit1
movlw D'2'
movwf digit2
movlw D'3'
movwf digit3
movlw D'4'
movwf digit4
movlw D'5'
movwf digit5
I want a function that converts these ascii digits to a decimal two bytes number which should be 12345, note that this is only an example, I want to be able to store any number less than or equal to 65535 , i am trying to make it done but nothing works