I'm still struggling to understand how this works:

10 a$="Code in ASCII"
20 call varptr(a$)

Doesn't varptr(a$) return the address of the string descriptor, which is
[len,lo,hi]? Wouldn't you have to synthesize the call address from
lo+hi*256?

Or is there something magical about how constant strings are stored? And
how do you relocate the code? Or is the first entry in the string table a
known address, and you just assemble for that position?

Thanks!

On Fri, Sep 13, 2019 at 10:30 AM Kurt McCullum <[email protected]> wrote:

>
> It would appear that Steve already came up with a simple solution to my
> problem. I just had to find the file "embedding short ML routines in
> BASIC.txt"
>
> 10 a$="Code in ASCII" Zeros not valid but I can work with that.
> 20 call varptr(a$)
>
> Simple solution Steve. My thanks to you for putting that file together.
>
> Kurt
>

Reply via email to