Re: peek/poke

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

On Mon, 27 Mar 2000, you wrote:
> I have a question too!
> Since we have:
> s = peek({100, 4})
> where 4 memory locations (100,101,102,103) are read and dropped into s,
> where is the corresponding poke command? What if i want to poke a 80K
> sequence into memory? Can i do:
> poke(s,{location,length(s)})

Yep, but it looks like this: poke(addr, sequence)
The entire length of the sequence is poked into memory, starting at addr.

> , where each byte of s lands in the next memory location? What if s contains
> nested sequences? It's not in the docs that i can find.

You'll get an error message: "Sequence to be poked must contain only atoms".

>What if i want each char of s to land in the *same* memory addy?

Make a loop. You'll be doing some processing in between each poke, right?

Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu