home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 178 / PATCHBAS.ZIP / PATCHBAS.DOC < prev   
Text File  |  1986-01-21  |  5KB  |  78 lines

  1.  
  2.  
  3.         There was a file called BASICAJR.DOC on the California junior BBS at 
  4. 1(213)659-7187 that explained how to use Debug to patch BASICA.COM so that it 
  5. would run on an IBMPCjr without cartridge basic installed.  Usually when you 
  6. try to run any version of basic on a jr., you must have cartridge basic 
  7. installed.  If you don't, you will get a message "Cartridge Required" as 
  8. explained on p. A-7 of jr's Basic manual.  With this patch, you do not need to 
  9. have the basic cartridge inserted; all you need is the patched version of 
  10. BASICA on disk.  
  11.  
  12.         There are two reasons why running BASICA from disk is a good idea.
  13.         
  14.         First, it lets you use basic even without the special junior cartridge 
  15. version, which you might want to do because you haven't got it or because
  16. you have other special purpose cartridges in both slots and want to run a
  17. quick basic program without rebooting the machine.  
  18.  
  19.         Second, because of the way cartridge basic checks for whether there is 
  20. enough memory on the machine to run basic, if you have over 256K on your junior 
  21. you may get an "Out of Memory" statement and won't be able to run basic even if 
  22. you know you have 640K.  This is because cartridge basic does an Int 12H to get 
  23. the total amount of memory, but it only reads the "low byte" returned.  This 
  24. means that with more than 256K, it may think that it only has 18962 bytes free, 
  25. not enough.  Disk basic will still run fine in this case.  The solution that 
  26. most makers of hardware like memory expansions or second drives for the junior 
  27. suggest, is to keep a copy of unmodified DOS to run basic with, but that is 
  28. very inconvenient.  It means, for instance, that you can't run a quick basic 
  29. program to set up your printer or keep a log of computer usage when running 123 
  30. or a full-size word processor.  This patched version will work in those 
  31. circumstances.  
  32.  
  33.         There are two small problems with this patch.  
  34.  
  35.         First, the original patch disabled the "soft" keys, the function keys 
  36. that show up on line 25 of the basic screen. (See jr's Basic manual, p. 4-158.) 
  37. You would have to type in "RUN" instead of using Fn2.  I have written a short 
  38. basic program that corrects this; if you run it whenever you start disk basic, 
  39. the function keys will work. You might want to modify the function keys after 
  40. you take a look at this program and pp. 4-157 to 4-159 in the junior basic 
  41. manual; you can set up a function key to clear the screen and return to the 
  42. system if you like, or anything else you want.  While you are at it, you can 
  43. change line 0 of the program to use colors you like; I have just added line 0 
  44. because I like those colors on my basic screen. You don't need to do any of 
  45. this if you don't mind the lack of soft keys.  If you do want to use the soft 
  46. keys, to start basic with soft keys enabled type  BASICAJR KEY  then hit return 
  47. key.  
  48.  
  49.         Second, cartridge basic has several features and commands that disk 
  50. basic doesn't.  If a program was designed specifically for cartridge basic on 
  51. the jr, it may not run under BASICA.  Except for those programs written 
  52. specifically for jr's cartridge basic, disk basic should be o.k..  
  53.  
  54.         The simplest way to get disk basic is to just rename a copy of 
  55. BASICA.COM something like JRBASIC.COM.  This works fine if you always keep 
  56. your basic cartridge in one of the slots, but if you have two other cartridges 
  57. there and try it, you will get the "Cartridge required" message.  This patched 
  58. version of BASICA must also be renamed; if you just type in BASIC or BASICA, 
  59. you will get thrown into the cartridge version. The automatic patch will rename 
  60. BASICA BASICAJR.COM (for BASICA jr version).  To run disk basic, always 
  61. remember to type in BASICAJR; to run it with working function keys, type in 
  62. BASICAJR KEY.  
  63.  
  64.         To patch your copy of BASICA.COM, you must have copies of the following 
  65. files on your disk: 
  66.         BASICA.COM (program to be patched)
  67.         DEBUG.COM (program that does the patching)
  68.         PATCHBAS.BAT (program that automates the process)
  69.         PATCH.TXT (file that tells debug what to do to basica)
  70.  
  71.         At the DOS prompt, type in PATCHJR; everything else should happen 
  72. automatically.  When you see the DOS prompt again, you should have a patched
  73. version of disk basic.                                    
  74.  
  75.                                                 John Wager
  76.                                                 844 Carpenter
  77.                                                 Oak Park, Il.
  78.