Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BASIC.SYSTEM bug (I think)

0 views
Skip to first unread message

Matthew Fischer

unread,
Dec 24, 1993, 5:05:26 PM12/24/93
to

I just noticed a little bug in BASIC.SYSTEM today. I've checked all
versions available to me (1.5, 1.4.1, 1.4, 1.3, 1.1), and they all
behave the same. BASIC.SYSTEM stores the value of the V (volume
number) parameter by mistake in the LSB of the @ (BASIC line number)
parameter's space in the BI Global Page ($BExx). The V value should be
stored in location $BE67, and the @ value in locations $BE68-$BE69,
but the V really gets stored in $BE68. Thus, if you use both the V and
the @ parameters on the same command line, the second one entered will
overwrite the first.

Try this:

]513 PRINT "This line should not get executed.
]515 PRINT "This line should get executed.
]savebasfile
]runbasfile,v1,@515
This line should get executed.

]runbasfile,@515,v1
This line should not get executed.
This line should get executed.

To correct this, store a $3C in the proper memory location (or POKE a
60). The original value for these locations is $40 (64 decimal).

Location Version
B9F1 (47601) 1.5
B9CB (47563) 1.4.1
B9C6 (47558) 1.4
B9CF (47567) 1.3
B987 (47495) 1.1
0 new messages