Article View: comp.bugs.misc
Article #22Re: BASICA programming bugs
From: Tom Reingold
Date: Thu, 03 Sep 1992 13:55
Date: Thu, 03 Sep 1992 13:55
39 lines
2415 bytes
2415 bytes
anash@uhunix.uhcc.hawaii.edu (Dana Uehara c/o Andrew Nash) writes:
$ (If this article is not in the proper newsgroup, please forward it to the
$ proper newsgroup -- thanks!)
$ Does anyone have any suggestions as to how to debug BASIC/BASICA programs
$ so the graphics commands don't lock up the computer?
$ I have an IBM-compatible computer with a CGA screen. Most DOS and BASIC
$ programs are compatible with the computer (I think the DOS version is 2.0).
$ However, with a few computer programs written in BASIC the commands "GET"
$ and "PUT" seem to be the culprits in locking up the computer. When deleted,
$ the programs appear to run normally. But when kept, the commands either
$ produce strange graphics on the screen or completely lock up the computer
$ so I have to reboot the system to do any further work.
$ Is there a way to redo the statements (instead of using GET/PUT) so the
$ computer (hopefully) won't lock up? A couple of other programs that use
$ similar statements have worked, but most haven't.
$ DEBUG.COM hasn't really been much help because I'm not familiar with machine/
$ assembly language (I'm more familiar with BASIC). One of the commands I
$ encountered, however, when using DEBUG had a statement "LOCK".
The BASICA.COM that comes with IBM PC-DOS is intended for PC's made by
the IBM corporation. This is one place where so-called compatibles are
not so compatible with IBM's. If you are using IBM's BASICA, I would
things not to work.
The reason for this is that IBM's interpreter calls routines in the IBM
ROM. These routines are not in ROMs of compatible PC's for copyright
reasons. So the BASIC interpreter must have all the calls in software
since there is no ROM helping out.
--
Tom Reingold
tr@samadams.princeton.edu OR ...!princeton!samadams!tr
"Warning: Do not drive with Auto-Shade in place. Remove
from windshield before starting ignition."
Technical Details
Message-ID:
<tr.715528559@samadams>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!newross!samadams!trReferences:
<1992Aug28.092454.1412@news.Hawaii.Edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.bugs.misc Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!newross!samadams!tr From: tr@samadams.princeton.edu (Tom Reingold) Subject: Re: BASICA programming bugs Message-ID: <tr.715528559@samadams> Sender: news@newross.Princeton.EDU (USENET News System) Organization: Noo Joizy, USA References: <1992Aug28.092454.1412@news.Hawaii.Edu> Date: 3 Sep 92 13:55:59 GMT Lines: 39