home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / bugs / misc / 158 < prev    next >
Encoding:
Text File  |  1992-09-02  |  2.3 KB  |  51 lines

  1. Newsgroups: comp.bugs.misc
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!newross!samadams!tr
  3. From: tr@samadams.princeton.edu (Tom Reingold)
  4. Subject: Re: BASICA programming bugs
  5. Message-ID: <tr.715528559@samadams>
  6. Sender: news@newross.Princeton.EDU (USENET News System)
  7. Organization: Noo Joizy, USA
  8. References: <1992Aug28.092454.1412@news.Hawaii.Edu>
  9. Date:  3 Sep 92 13:55:59 GMT
  10. Lines: 39
  11.  
  12. anash@uhunix.uhcc.hawaii.edu (Dana Uehara c/o Andrew Nash) writes:
  13.  
  14. $ (If this article is not in the proper newsgroup, please forward it to the
  15. $ proper newsgroup -- thanks!)
  16.  
  17. $ Does anyone have any suggestions as to how to debug BASIC/BASICA programs
  18. $ so the graphics commands don't lock up the computer?
  19.  
  20. $ I have an IBM-compatible computer with a CGA screen.  Most DOS and BASIC
  21. $ programs are compatible with the computer (I think the DOS version is 2.0).
  22.  
  23. $ However, with a few computer programs written in BASIC the commands "GET"
  24. $ and "PUT" seem to be the culprits in locking up the computer.  When deleted,
  25. $ the programs appear to run normally.  But when kept, the commands either
  26. $ produce strange graphics on the screen or completely lock up the computer
  27. $ so I have to reboot the system to do any further work.
  28.  
  29. $ Is there a way to redo the statements (instead of using GET/PUT) so the
  30. $ computer (hopefully) won't lock up?  A couple of other programs that use
  31. $ similar statements have worked, but most haven't.
  32.  
  33. $ DEBUG.COM hasn't really been much help because I'm not familiar with machine/
  34. $ assembly language (I'm more familiar with BASIC).  One of the commands I
  35. $ encountered, however, when using DEBUG had a statement "LOCK".
  36.  
  37. The BASICA.COM that comes with IBM PC-DOS is intended for PC's made by
  38. the IBM corporation.  This is one place where so-called compatibles are
  39. not so compatible with IBM's.  If you are using IBM's BASICA, I would
  40. things not to work.
  41.  
  42. The reason for this is that IBM's interpreter calls routines in the IBM
  43. ROM.  These routines are not in ROMs of compatible PC's for copyright
  44. reasons.  So the BASIC interpreter must have all the calls in software
  45. since there is no ROM helping out.
  46. --
  47.         Tom Reingold
  48.         tr@samadams.princeton.edu  OR  ...!princeton!samadams!tr
  49.         "Warning: Do not drive with Auto-Shade in place.  Remove
  50.         from windshield before starting ignition."
  51.