Date : Thu, 19 Nov 2009 10:32:23 +0000 (GMT)
From : kranser@... (Steve Fewell)
Subject: Quine
Well, The NEW command stores #&0D i.e. the '<cr>' character
and #&FF as the first 2 bytes of the 'empty' program. So I guess that is
an actual program that does nothing and has no line numbers!
Regards,
Steve
--- On Thu, 19/11/09, Anders Carlsson <anders.carlsson@...> wrote:
> From: Anders Carlsson <anders.carlsson@...>
> Subject: Re: [BBC-Micro] Quine
> To: "BBC Micro List" <bbc-micro@...>
> Date: Thursday, 19 November, 2009, 9:17
> Steve Fewell asked:
>
> > ...But is it a BBC BASIC program if it doesn't have
> line numbers?
>
> I suppose it depends on how a Basic program is stored in
> memory. Honestly
> yet I know almost nothing about the BBC Micro, but e.g.
> Commodore Basic
> initializes memory to two zero bytes which forms a pointer
> to the memory
> address of next line. &0000 simply means no more line.
> When you add a line
> of Basic, the pointer on the previous line is updated as
> well as the new
> line is terminated with a single zero byte.
>
> However executing nothing does not generate something that
> is nothing.
> Rather it actually does nothing so in that respect an empty
> program probably
> can't be considered a quine. *gets a bit dizzy*
>
> Best regards
>
> --
> Anders Carlsson
>
>
> _______________________________________________
> bbc-micro mailing list
> bbc-micro@...
> http://lists.cloud9.co.uk/mailman/listinfo/bbc-micro
>