[comp.sys.apple] BASIC.SYSTEM v1.3 BLOAD Bug

dlyons@Apple.COM (David Lyons) (09/26/89)

In article <7834@microsoft.UUCP> brianw@microsoft.UUCP (Brian Willoughby) writes:
>What is the proper channel to alert Apple development of bugs in their
>code?

I believe there's an AppleLink address and a U.S. Mail address specifically
for reporting bugs, but I don't have the details at hand.

>I just got ProDOS 8 v1.8 and version 1.3 of BASIC.SYSTEM and I have been
>downloading lots of comp.binaries.apple2 files to my Apple. [...]

The problem where BLOADing over protected memory BSAVEs instead is a known
bug in BASIC.SYSTEM 1.3; the fixed version will see the light of day shortly.

>P.S. Do I get a free IIgs for finding this one?

No, at least not from me.  :-)

>Brian Willoughby
>UUCP:           ...!{tikal, sun, uunet, elwood}!microsoft!brianw
>InterNet:       microsoft!brianw@uunet.UU.NET
>  or:           microsoft!brianw@Sun.COM
>Bitnet          brianw@microsoft.UUCP
-- 

 --Dave Lyons, Apple Computer, Inc.          |   DAL Systems
   AppleLink--Apple Edition: DAVE.LYONS      |   P.O. Box 875
   AppleLink--Personal Edition: Dave Lyons   |   Cupertino, CA 95015-0875
   GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
   Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons

   My opinions are my own, not Apple's.

mdavis@pro-sol.cts.com (Morgan Davis) (09/26/89)

Network Comment: to #11444 by dlyons@apple.com

Dave Lyons (dlyons@apple.com) writes:

> The problem where BLOADing over protected memory BSAVEs instead is a known
> bug in BASIC.SYSTEM 1.3; the fixed version will see the light of day
> shortly.

Is there a known patch we can apply to our copies of 1.3 just to protect
us until the fixed version is released?

UUCP: crash!pnet01!pro-sol!mdavis		ProLine:  mdavis@pro-sol
ARPA: crash!pnet01!pro-sol!mdavis@nosc.mil	MCI Mail: 137-6036
INET: mdavis@pro-sol.cts.com			ALPE|BIX: mdavis

dlyons@Apple.COM (David Lyons) (09/27/89)

In article <8909261820.AA26117@trout.nosc.mil> mdavis@pro-sol.cts.com (Morgan Davis) writes:
>Network Comment: to #11444 by dlyons@apple.com
>
>Dave Lyons (dlyons@apple.com) writes:
>
>> The problem where BLOADing over protected memory BSAVEs instead is a known
>> bug in BASIC.SYSTEM 1.3; the fixed version will see the light of day
>> shortly.
>
>Is there a known patch we can apply to our copies of 1.3 just to protect
>us until the fixed version is released?

There's no Apple-supported patch; I recommend just using 1.2 until you can
get your hands on 1.4.
-- 

 --Dave Lyons, Apple Computer, Inc.          |   DAL Systems
   America--Apple Edition: DAVE.LYONS        |   P.O. Box 875
   America Online: Dave Lyons                |   Cupertino, CA 95015-0875
   GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
   Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons

   My opinions are my own, not Apple's.

fitzpatrick@esteem.enet.dec.com (Dave FitzPatrick) (09/28/89)

In article <8909261820.AA26117@trout.nosc.mil>, mdavis@pro-sol.cts.com (Morgan Davis) writes...
>Dave Lyons (dlyons@apple.com) writes:
> 
>> The problem where BLOADing over protected memory BSAVEs instead is a known
>> bug in BASIC.SYSTEM 1.3; the fixed version will see the light of day
>> shortly.
> 
>Is there a known patch we can apply to our copies of 1.3 just to protect
>us until the fixed version is released?
> 
>UUCP: crash!pnet01!pro-sol!mdavis		ProLine:  mdavis@pro-sol
>ARPA: crash!pnet01!pro-sol!mdavis@nosc.mil	MCI Mail: 137-6036
>INET: mdavis@pro-sol.cts.com			ALPE|BIX: mdavis

Morgan, I posted this bug report in apple/software on BIX yesterday and the
following was there this morning, posted by George Powell (yllar.17).

[> apple/software #1647 yllar.17 2278 27Sep89 09:49
TITLE: bug fix for basic system 1.3

Ok folks, here is the patch to basic system 1.3

It really was quite easy to track down this one...the guilty code, is at $Af01,
seems the way this was coded, if it got any kind of error reading the file, it
would then try to write it, all the problem was, is when returning from the
routine that does MLI calls, it would BCS to a write routine nearby, in place
of BCS to the rts statement...the following basic program will patch basic 1.3,
and it will not mess up any other basic version, it will simply abort.

When running this, you must write protect the disk when told to  do so, and
unprotect it when told to.

Also, sorry bout all caps, i was in a hurry....and besides, it doesn't need to
be fancy anyway...you also MUST type the word 'OK' in uppercase after write
protecting the disk..otherwise the same bug could trash the basic system file,
if there is a error of some kind reading it..


If anyone has any probs with this mod, please let me know, but there should be
nothing to worry about after the patch....the original value in $AF05 was $0F,
when it should have been $9F...maybe the assembler basic was written with has
some weird bug...who knows...but anyway, the patch works, and im going to bed
now..enjoy..


GP    :>

l8tr

cut on the line and EXEC from basic...
=========================CUT HERE==========================================

 100  HOME 
 110  PRINT "THIS WILL PATCH THE BLOAD"
 120  PRINT "BUG IN BASIC.SYSTEM 1.3"
 130  PRINT "WRITE PROTECT YOUR DISK"
 140  PRINT "AND THEN ENTER 'OK' TO PROCEED"
 150  INPUT A$
 160  IF A$ <  > "OK" THEN 100
 200  PRINT  CHR$ (4)"BLOAD BASIC.SYSTEM,A$2000,TSYS"
 1000  FOR A = 14591 TO 14610
 1010  READ X
 1020  IF  PEEK (A) <  > X THEN 3000
 2000  NEXT A
 2010  POKE 14597,159
 2011  HOME 
 2020  PRINT "PATCHING DONE"
 2030  PRINT "UNPROTECT THE DISK, AND PRESS RETURN"
 2040  INPUT A$
 2050  PRINT  CHR$ (4)"UNLOCK BASIC.SYSTEM"
 2060  PRINT  CHR$ (4)"BSAVE BASIC.SYSTEM,A$2000,TSYS,L10240"
 2070  PRINT  CHR$ (4)"LOCK BASIC.SYSTEM"
 2075  HOME 
 2080  PRINT "BASIC PATCHED": END 
 3000  PRINT "NOT BASIC 1.3, OR ALREADY PATCHED"
 3010  PRINT "PROGRAM ABORTED"
 3020  END 
 40000 DATA 169,203,32,112,190,176
 40010 DATA 15,44,87,190,112,7,224,15,208,3,32,33,184,76

-- 
   Dave FitzPatrick

(UUCP)       {decvax, ucbvax, allegra}!decwrl!esteem.enet.dec.com!fitzpatrick
(Internet)   fitzpatrick%esteem.DEC@decwrl.ARPA
(BITNET)     fitzpatrick@esteem.enet.dec.com
(BIX)        dave.f   (co-moderator of the 'television' conference)
(US MAIL)    DEC, 77 Reed Rd.  MS: HLO2-1/E11, Hudson, MA  01749

mdavis@pro-sol.cts.com (Morgan Davis) (09/29/89)

Network Comment: to #11490 by dlyons@apple.com

Dave Lyons (dlyons@apple.com) writes:

> There's no Apple-supported patch; I recommend using 1.2 until you can
> get your hands on 1.4.

Okay then.  Is there a Dave Lyons-supported patch (one of those off the
record, disclaimed patches)?  Tell us, Dave!  :-)

UUCP: crash!pnet01!pro-sol!mdavis		ProLine:  mdavis@pro-sol
ARPA: crash!pnet01!pro-sol!mdavis@nosc.mil	MCI Mail: 137-6036
INET: mdavis@pro-sol.cts.com			ALPE|BIX: mdavis

sschneider@pro-exchange.cts.com (The RainForest BBS) (09/30/89)

Comment to message from: mdavis@pro-sol.cts.com (Morgan Davis)

Morgan..
Someone just posted a "patch" for 1.3... worked for me..
/steve

-----------------------------------------------------------------------------
| UUCP: crash!pro-exchange!sschneider               COMPU$ERVE : 75166,2544 |
| ARPA: crash!pro-exchange!sschneider@nosc.mil      GENIE      : sschneider |
| INET: sschneider@pro-exchange.cts.com * My son is a Georgia Tech freshman |
| I work for Xerox Corporation for decent  bucks but dream of Palto Alto RC |
| The RainForest @ 305-434-4927 / PO Box 841422, Pembroke Pines, Fl,  33084 |
-----------------------------------------------------------------------------

bsherman@ibiza.cs.miami.edu (Bob Sherman) (10/03/89)

mdavis@pro-sol.cts.com (Morgan Davis) writes:

>Network Comment: to #11490 by dlyons@apple.com

>Dave Lyons (dlyons@apple.com) writes:

>> There's no Apple-supported patch; I recommend using 1.2 until you can
>> get your hands on 1.4.

>Okay then.  Is there a Dave Lyons-supported patch (one of those off the
>record, disclaimed patches)?  Tell us, Dave!  :-)

>UUCP: crash!pnet01!pro-sol!mdavis		ProLine:  mdavis@pro-sol
>ARPA: crash!pnet01!pro-sol!mdavis@nosc.mil	MCI Mail: 137-6036
>INET: mdavis@pro-sol.cts.com			ALPE|BIX: mdavis

Hang in there Morgan. Help is closer than you think. During the
Gassee keynote at A'fest, version 1.4 appeared on the screen.

Some developers already have 1.4 in their hands, and I was told it
was at the duplicaters about a week ago. As soon as that is finished
it will be distributed to those channels that usually get such updates,
and will be included in new units being shipped.

You might want to contact your nearby neighbor Roger Wagner, He already
got his copy at Applefest, and perhaps Mark picked up one also since
he was at 'fest.. It is on the updated system disk.

bsherman@ibiza.cs.miami.edu     or     bsherman@mthvax.cs.miami.edu
bsherman@pro-exchange                  MCI Mail:   BSHERMAN