<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 29 Mar 2000 11:12:46 -0500
From   : Brian Ross <Brian_Ross@...>
Subject: Re: Beeb BASIC Bug

As I recall the explanation is that when G.10s are expanded the tokenised
version exceeds the 255 byte limit.    You can fit more G.10 than GOTO 10
into the OS maximum line length (not the same as the BASIC line buffer).
When the G.10 are expanded the BASIC buffer chokes but not with the fewer
G.10s.

Brian.

-----Original Message-----
From: owner-bbc-micro@...
[mailto:owner-bbc-micro@...]On Behalf Of Steve Fewell
Sent: Wednesday, March 29, 2000 10:17 AM
To: bbc-micro@...
Cc: bbc-micro@...
Subject: Re: [BBC-Micro] Beeb BASIC Bug


> Yes, it is. Strangely enough, if you use GOTO 10 in the line rather than
> G.10, the bug does not occur.
This probably has something to do with line length. BASIC has a 255 char.
buffer for Code lines (whether they have been tokenised yet or not). I'm
wondering if "G.10" gets tokenised to more than 4 bytes, thus causing the
buffer length to be exceeded. "G." [GOTO] will be tokenised as 1 byte, and
the line number (I think, please correct me) is tokenised as 2-bytes,
therefore, I
cannot see why this would cause BASIC to crash.

Steve Fewell
Scala Business Solutions UK
----- Original Message -----
From: <Julian.Stenning@...>
To: <brian@...>; <Julian.Stenning@...>
Cc: <bbc-micro@...>
Sent: Wednesday, March 29, 2000 3:05 PM
Subject: RE: [BBC-Micro] Beeb BASIC Bug


>
> Yes, it is. Strangely enough, if you use GOTO 10 in the line rather than
> G.10, the bug does not occurr.
>
>
> -----Original Message-----
> From: Brian Widdas [mailto:brian@...]
> Sent: 29 March 2000 15:04
> To: Julian.Stenning@...
> Cc: bbc-micro@...
> Subject: Re: [BBC-Micro] Beeb BASIC Bug
>
>
>
> On Wed, 29 Mar 2000 Julian.Stenning@... wrote:
>
> > I remember reading this in 'The Micro User' letters section years
ago....
> >
> > At the prompt type 10G.10: and copy the G.10: until the maximum line
> lenght
> > beep occurrs (i.e. 10G.10:G.10:G.10 etc)
> >
> > Once return is pressed, the beeb hangs with random sounds. This is also
> true
> > for PCBBC and BeebEm.
>
> Bizarre. Isn't G. a shorthand for GOTO?
>
> Brian
> --
> BW7226
> http://www.compsoc.man.ac.uk/~brian/
> BW1124-RIPE
> http://www.active-high.co.uk/
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>