Code:Hi! Just do an addition like you would do on paper without a calculator. The multipliers used below are the single HEX digits. (Multipliers for your example: 3=3, F=15, 1=1, 2=2, 3=3, 4=4). See also the PicBasic "DIG" instruction. HEX ====== 3F1234 DEC ======= 1048576 1048576 1048576 65536 65536 65536 65536 65536 65536 65536 65536 65536 65536 65536 65536 65536 65536 65536 4096 256 256 16 16 16 1 1 1 1 ======= 4133428 (3*6)+(15*6)+(1*6)+(2*6)+(3*6)+(4*1)= 148 (write 8) 14+(3*7)+(15*3)+(1*9)+(2*5)+(3*1)= 102 (write 2) 10+(3*5)+(15*5)+(1*0)+(2*2)= 104 (write 4) 10+(3*8)+(15*5)+(1*4)= 113 (write 3) 11+(3*4)+(15*6)= 113 (write 3) 11+(3*0)= 11 (write 1) 1+(3*1)= 4 (write 4) ============================================== Have fun! Luciano
Bookmarks