Re: return a 2-byte binary representation of a string sequence
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 08, 2003
- 712 views
----- Original Message ----- From: "H.W Overman" <euman at bellsouth.net> To: <EUforum at topica.com> Subject: Re: return a 2-byte binary representation of a string sequence > > > Im close I think with this: > > pointer = poked string sequence > result = remainder(floor(pointer/256),256) > > Maybe Im wrong > > Euman > > > Hello all, > > > > Dumb question as my brain is not functioning > > > > How do I return a 2-byte binary representation of a string sequence? > > What the....??? And if the string is longer than two bytes? Well that was my first reaction, but from your 'example' it seems you are trying to get the lower 16-bits of a RAM address. Is that what you are trying for? If so just do this... result = and_bits(#FFFF, pointer) -- Derek