Re: return a 2-byte binary representation of a string sequence
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Nov 08, 2003
- 678 views
On Sat, 8 Nov 2003 15:08:00 -0500, "H.W Overman" <euman at bellsouth.net> wrote: > >Im close I think with this: > >pointer = poked string sequence >result = remainder(floor(pointer/256),256) > >Maybe Im wrong > I'm not getting a clear picture of what you want here, but this was lying around somewhere, if it is any help: function Peek2u(atom x) -- returns a 2 byte signed word from address x return peek(x+1)*#100 + peek(x) end function Pete Pete http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html