Shifting numbers in MMBasic


Author Message
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 04:15am 08 Mar 2012      

x=(byte1*(2^16) + byte2*(2^8) + byte3) \ 2^(8-y)

I had a bit of uncertainty about the 8-y. Not sure what you wanted. I assumed right shift by 8-y.Edited by BobD 2012-03-09