<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 29 Mar 2000 16:14:05 +0100 (BST)
From   : "Dr. David Gilbert" <dg@...>
Subject: Re: Beeb BASIC Bug

On Wed, 29 Mar 2000 Julian.Stenning@... wrote:

> 
> Yes, it is. Strangely enough, if you use GOTO 10 in the line rather than
> G.10, the bug does not occurr.

I suspect the problem is with the tokenisation routine.  In almost all
cases the tokenised version will be shorter than the original, but I
suspect that G.10 actually expands to perhaps something at least as long
and perhaps longer than the original.
If I remember correctly the line number was stored in an odd way (was it a
3 character???).

If that is the case then perhaps the tokenised line actually comes out as
too big and the poor thing gets confused.  If you used GOTO 10 of course
you will have had less tokens.

(The emulators should have no problem recreating the behaviour becuase
they are emulating at the register level!).

Dave

/------------------------------------------------------------------\
| Dr. David Alan Gilbert | Work:dg@...       +44-161-286-2000 Ex258|
| -------- G7FHJ --------|---------------------------------------- |
| Home: dave@...                    http://www.treblig.org         |
\------------------------------------------------------------------/
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>