RE: A83: Strange Ashell bug


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

RE: A83: Strange Ashell bug



That happens because of the way AShell runs BASIC programs.  Notice how strange the BASIC program for AShell looks.  What it actually does is edits itself (the place with all the ":"s) and exits the program with X set to whatever such that the program runs.  When you put a colon at the top of the program what you are doing is causing AShell to edit the wrong place in the program.  The result is AShell may not exit and probably won't run BASIC programs correctly.
I'm not 100% sure that is correct to tell you the truth, but that's how I did it in SOS v0.5 so it probably is the way AShell does it too....

----------
From: 	David Endahl[SMTP:endahld@scnc.wmston.k12.mi.us]
Sent: 	Sunday, June 21, 1998 2:40 PM
To: 	assembly-83
Subject: 	A83: Strange Ashell bug


Hello all,
	I'm curious as to why this happens.  You can try it too, but you
will have to take the batteries out of your calc.  For 83 users with
Ashell, try making Ashell compatible with ITSELF :)  Just add the colon at
the beginning of the BASIC code.  Now, run the program, and try launching
it from within itself.  As you would expect, it doesn't look like anything
changes, but now you can't exit, or run any other BASIC programs through
Ashell.  The assembly programs still work fine, though.  Does anyone know
why this happens?  I'm just curious, and I confess to having way too much
free time :)


-David Endahl
endahld@scnc.wmston.k12.mi.us

"Without the band, it's just a GAME!"
"The first half is pre-game for  the halftime show"
"The second half is a time to prepare for the post-game show"
"Come for the band, stay for the football"



Warning
Could not process part with given Content-Type: application/ms-tnef