Re: poke2 question

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

>To poke a 16bit number, use this..
>       poke(address,{remainder(num,256),floor(num/256)})


Though this would be faster:

  poke(address,{and_bits(num,255),floor(num/256)})

or (probably) even:

  poke(address,{num, floor(num/256)})

since poke() only will store the lower 8 bits of the first value anyway.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu