[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in Integer BASIC (strings longer than 250 chars crash)
- Subject: Bug in Integer BASIC (strings longer than 250 chars crash)
- From: cmosher01 <cmosher01@gmail.com>
- Date: Thu, 24 Sep 2009 20:22:45 -0700 (PDT)
- Complaints-to: groups-abuse@google.com
- Injection-info: g6g2000vbr.googlegroups.com; posting-host=69.0.74.246; posting-account=OCkhTgoAAABxh_sSE4nRU-kNsJoa95ny
- Newsgroups: comp.sys.apple2
- Organization: http://groups.google.com
- User-agent: G2/1.0
- Xref: g2news2.google.com comp.sys.apple2:13762
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