Date : Mon, 09 Sep 2002 09:28:04 +0100
From : Sprow <news@...>
Subject: Re: Regaining disc drive memory work space
In article <10209090016.ZM115@...>,
Pete Turnbull <pete@...> wrote:
[snip]
> > >> 9000 FOR I%=0 TO TOP-PAGE STEP
> > >> 4:!(I%+&E00)=!(i%+PAGE):NEXT:PAGE=&E00:OLD:RUN
> > >
> > >[snip]
> > >
> > >> OLD is needed to ensure BASIC is aware of the new program in memory.
> > >
> > >Except of course OLD can only be used at the command prompt,not included
> > >in a program line,
> >
> > Ah..
> >
> > Perhaps OLD is not needed then. But I've seen programs relocate in this
> > manner :)
> I thought you did need it. I recall programming commands into a function
> key and then poking the key value into the buffer, for that reason.
> However, I just tried it with a little 2-liner, and it worked.
...and that's the key.You can't use OLD in a program,but you can stuff OLD|M
into the keyboard buffer,
Sprow.