Actually 9600 is 0x2580
This operation is a lot faster if you just do this:
byte x = 0x25;
byte y = 0x80;
z = ( x << 8 ) + y;
yes, sorry was coding from memory got it backwards, but actually this was what i was originally trying to do, and i couldnt get it to work. the excercise was just putting 2 bytes together, sorry if i didnt use x=0x28. and..
Multiplying the MSB by 256 and adding the LSB doesn't require any magic function.
Shifting the MSB left by 8 and adding the LSB achieves the same result, and requires no magic function.
Learning HOW the magic functions work is better than stumbling over the magic functions.
i am not looking for a magic function, im new and seriously trying to learn the proper way to do things. i understand many people come to the forums for you guys to do their work for them, but im interested in learning how to fish, so you dont have to keep buying me dinner Paul
. rest assured all the answers here are going to messed with by me over next few hours until i thoroughly understand them and can apply them where needed from memory. my memory that is not eeprom
i appreciate all the posters time and answers and sharing of knowledge.