Date : Sat, 21 Nov 2009 15:29:59 -0800 (PST)
From : kranser@... (Steve Fewell)
Subject: Quine
Command Line only tokens are as follows:
C6 AUTO
C7 DELETE
C8 LOAD
C9 LIST
CA NEW
CB OLD
CC RENUMBER
CD SAVE
CE EDIT
Steve.
--- On Sat, 21/11/09, Steve Fewell <kranser@...> wrote:
> From: Steve Fewell <kranser@...>
> Subject: Re: [BBC-Micro] Quine
> To: bbc-micro@..., "Rick Murray" <rick@...>
> Date: Saturday, 21 November, 2009, 23:27
> LIST when appearing in programs is
> actually still tokenised [token &C9]. So a
> tokeniser/detokeniser is not needed.
>
> When running a program, BASIC checks the Memory PAGE that
> the code is running from, if it is &07 (Command Line)
> [&0700-&07FF], commands &C6 and above are
> executed, if a program is running, commands greater than or
> equal to &CF are executed - all other commands are
> treated as a variable name - which would result in Syntax
> Error for token &C9!
>
> There doesn't seem to be a way to hack BASIC or to trick it
> into executing token &C9 while running a program!
>
> Command Line only tokens are as follows:
> C6
>
> Steve.
>
> --- On Sat, 21/11/09, Rick Murray <rick@...>
> wrote:
> > I wonder if there is a way to "hack"
> > BASIC's memory so that it consists
> > of a program which is, essentially:
> >
> > ???10 LIST
> >
> > (given that LIST is normally an immediate command and
> not
> > permitted in
> > programs)
> >
> > ?
> >
> >
> > A detokeniser to list itself is an amusingly quirky
> > approach, I like! :-)
> >
> > Best wishes,
> >
> > Rick.
> >
> >
> >
>
>
>
> ? ? ?
>
> _______________________________________________
> bbc-micro mailing list
> bbc-micro@...
> http://lists.cloud9.co.uk/mailman/listinfo/bbc-micro
>