home *** CD-ROM | disk | FTP | other *** search
/ Run Magazine ReRun 1992 September & October / rerun-1992-09-10-side-a.d64 / basic+.txt < prev    next >
Text File  |  2022-09-20  |  4KB  |  64 lines

  1. Basic Plus 64
  2. by Dana E. Edgecomb
  3.  
  4.     Basic Plus 64 is a self-booting program that can be loaded and run as you would any other Basic program. It loads into the RAM at memory location 38613 ($96D5), then deletes the boot file from memory. At this point it displays the message "Basic Plus enabled"  on your screen.
  5.  
  6. Basic Plus 64 is designed to preserve the memory vectors that it changes, so it can be used in conjunction with other machine language utilities. The only precautions to follow is to load Basic Plus 64 last, and any other utilites in memory must not occupy the RAM from 38613-40959, or the 4K block of RAM that starts at 49152.
  7.  
  8. Basic Plus 64 adds Direct mode commands to Basic. The added commands are REN, KEYX, HELP and QUIT.
  9.  
  10. REN renumbers a Basic program. The formats allowed for this command are:
  11.  
  12. REN
  13. REN,start
  14. REN,start,increment
  15.  
  16. The defaults for this command are start with line number 100, in increments of 10. If the starting line number is entered, it cancels the default value. If the starting line number and increment number are entered, both defaults are overridden. Here are some examples: 
  17.  
  18. REN: The program is renumbered starting with line number 100, and an increment of 10.
  19. REN,200: Renumbering starts with line number 200, using the default increment of 10.
  20. REN,200,5: Renumbering begins with line number 200, using an increment of 5.
  21.  
  22. While the renumbering process is occurring, new line numbers representing the arguments to GOTO, GOSUB, THEN, LIST and RUN are displayed on the screen.
  23.  
  24. KEYX is the next Basic Plus 64 command. It allows you to program commands into the Function keys. There are defaults function key commands:
  25.  
  26. F1: REN,100,10
  27. F2: REN,10,10
  28. F3: OPEN15,8,15,"I0
  29. F4: LIST
  30. F5: SAVE
  31. F6: LOAD
  32. F7: PRINT
  33. F8: QUIT
  34.  
  35.      You can customize these to accomodate your needs by entering KEYX,"command". The x represents the key number (1 through 8) that you want to use. The command and the quotation marks cannot exceed 16 characters, otherwise you will get a "syntax error" message. The closing quote is optional.
  36.  
  37. You can enter a maximum of 15 characters, and only if you use the leading quote and do not enter a closing quote. If you need a quotation mark in the text, you must use an apostrophe, or it will be read as the end of text.
  38.  
  39. Examples:
  40.  
  41. KEY1,"data"
  42. KEY3,"data100,100,100
  43. KEY5,"load'filename',8"
  44.  
  45. Note that in the example, KEY3 has 15 characters of text, the maximum allowed. KEY5 shows an example of embedding a quote in the text. When KEY5 is pressed, it displays LOAD"FILENAME".
  46.  
  47. Entering the HELP command displays the Basic Plus 64 commands.
  48.  
  49. The QUIT command will exit Basic Plus 64, and restore the vectors as they were when Basic Plus 64 was started. Upon entering the command, it displays the message 'Basic Plus disabled.' on your screen.
  50.  
  51. Basic Plus 64 also alters the function of the CTRL key. While Basic Plus 64 is active, holding down the CTRL key will stop a listing from scrolling on the screen. It will not start again until the CTRL key is released.
  52.  
  53. Error Messages
  54.  
  55. The error messages that can be issued by Basic Plus 64 are as follows:
  56.  
  57. NEW NUMBERS TOO HIGH : RENUMBER ABORTED. This message appears if the line numbers exceed 63999, the highest line number allowed by Basic 2.0.
  58.  
  59. RAM OVERFLOW : RENUMBER ABORTED. You'll see this message if there are too many line numbers that fill RAM. The line number table is in the 4K free ram at 49152-53248 ($C000-$CFFF).
  60.  
  61. X RENUMBER ERRORS. In this example, X is the number of arguments to GOTO, GOSUB, THEN, LIST and RUN that do not represent valid line numbers. They are automatically replaced with the number 63999 by Basic Plus 64.
  62.  
  63.  
  64.