Re: asm.ex: how to put sring in structure

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

It's quite easy to get a string into memory. Try some code like this:

sequence text
atom ptr
text="Hello, world!$"      -- Define the message
ptr=allocate(length(text)) -- Carve a niche in memory the size of our
message
poke(ptr,text)             -- Stick the message in there

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

Search



Quick Links

User menu

Not signed in.

Misc Menu