Maybe I misunderstood:

by Ben (no login)

If you want to ? 3 lines at once without knowing the variable name and not using DIM then you would probably need to arrange the strings on to the memory so that you will know where they are to ?.

I don't know anything about memory, but it might be something similar to this:

line1$ = "========"
line2$ = "WANKERed"
line3$ = "========"

'set up memory:
def seg=varseg(line1$)
bpos=sadd(line1$)
epos=sadd(line3$)+len(line3$)

'print memory:
for i=bpos to epos
? chr$(peek(i));
next

to create new lines and stuff, more would have to be known about the strings. Since I don't know how to read string descriptors, I can't make it read properly.

String descriptors are the first few bytes which I believe tell something about the string, maybe the string length.

string offset= varptr(str$)

The first few bytes would be the descriptor the rest are the string content. If you can figure out the string descriptor, then the rest is easy.

Posted on Jan 17, 2009, 5:29 PM

Respond to this message   

Goto Forum Home