Re: return a 2-byte binary representation of a string sequence

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu