[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in Integer BASIC (strings longer than 250 chars crash)



I just stumbled across a bug in APPLE ][ Integer BASIC. See this
sample session:

>LIST
   10 DIM A$(255)
   20 FOR I=1 TO 251
   25 A$(I)="A"
   30 NEXT I
   31 PRINT "CRASH:"
   35 A$=A$
   40 END

>RUN
CRASH:

E67B-    A=E9 X=1E Y=00 P=F0 S=F8
*

I can't find any reference to this bug... anyone else ever run across
it? It seems to exist both in the original Apple ][ ROMs, and in the
INTEGER BASIC that's on the DOS 3.3 system master disk (which I know
has some other bug fixes). It seems that anytime you fill up a string
variable with more than 250 characters, and try to access it, it just
crashes.

Chris Mosher