Hi all,
Really hoping someone is willing to help a newbie here )
Right the problem i have is I've wrote a program that works out some bytes of hex.(checksum)
I get these bytes in an array resulting from a loop
so i have byte[0] byte[1] byte[2] byte[3]
fine no problems but i need to 'join' all these bytes and display the result in decimal.
eg
byte[0]=170
byte[1]=200
byte[2]=50
byte[3]=155
printf("%X %X %X %X2", byte[1],byte[2],byte[3],byte[4]);
i can display like AA C8 32 9B
But i need the bytes in a word AAC8329B so i can change to decimal (2865246875)
How to change hex bytes into a word ???
Thanks for your time and sorry about such a basic question.... 'fraid i'm still scratching my head and learning