Posted: Wed Jan 12, 2005 10:19 pm Post subject: Combining two 8-bit values
How can I combine two 8-bit values into one 16-bit value? One example is to read two ports and combine the data into one 16-bit word. One port would be the low byte and the other port would be the high byte. Can it be done in BASIC, or does it have to be done in assembly. I know a function exists in Bascom to split a 16-bit value into to 8-bits values, but what is its compliment?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum