home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / articles / archives / limanews.exe / BIGBAISC.TXT < prev    next >
Text File  |  2006-10-19  |  3KB  |  98 lines

  1.  ORIGINALLY PUBLISHED MARCH 1988 IN
  2.  LIMA NEWSLETTER
  3.  
  4.       AN EASY WAY TO MAKE LARGE TI
  5.  BASIC PROGRAMS WORK 
  6.         ^^^^^^PROPERLY  WHEN LOADED
  7.  AS DISK FILES  
  8.    ^^^^^^^^^^^^^^^by Charles Good 
  9.       
  10.      Some large TI-BASIC programs
  11.  originally written for cassette are
  12.  very hard to get to work properly
  13.  as disk PROGRAM files.  This is
  14.  because the disk system takes up some
  15.  VDP memory (the 16K RAM memory in the
  16.  console), and these very large
  17.  TI-BASIC programs need nearly all the
  18.  VDP (console) memory when they load
  19.  from tape.  TI-BASIC cannot access
  20.  the 32K memory expansion.  If CALL
  21.  FILES(1) doesn't work, you are
  22.  usually out of luck.  The large
  23.  TI-BASIC program either refuses to
  24.  load from tape when the disk system
  25.  is turned on, or the program loads
  26.  from tape, can be saved to disk as a
  27.  PROGRAM file, but won't work when
  28.  loaded and RUN from disk because the
  29.  program runs out of memory as it
  30.  executes.  Examples of such large TI
  31.  BASIC programs include NAME THAT BONE
  32.  published by C Regina in 99er
  33.  Magazine a few years ago (53
  34.  sectors), TYPING SYMBOLS a 1981 99er
  35.  magazine program originally written
  36.  for the 99/4 (56 sectors), and the
  37.  DOW-4 GAZELLE flight simulator
  38.  marketed by James Dow (47 sectors).   
  39.       
  40.      A few years ago SMART PROGRAMMER
  41.  published a rather complicated way of
  42.  using the Mini Memory and its
  43.  EXPMEM2 file to get such large
  44.  TI-BASIC programs to work from disk.
  45.  If you have a Horizon Ramdisk, there
  46.  is a much easier way.  According to
  47.  an article by Chris Schram in the
  48.  Dec.^87 issue of Micropendium,
  49.  Horizon Ramdisks use up only 11 bytes
  50.  of VDP memory and will work exactly
  51.  as disk drives even if the console is
  52.  turned on BEFORE the PE box is turned
  53.  on.  This procedure deactivates the
  54.  floppy drives and prevents the disk
  55.  controller from eating up lots of VDP
  56.  memory.  To make large TI-BASIC
  57.  programs work properly from Horizon
  58.  Ramdisks, do the following. 
  59.       
  60.      1.  If you don't already have the
  61.  large BASIC program saved to disk,
  62.  hook up your tape recorder, turn on
  63.  the console FIRST and THEN turn on
  64.  the PE box.  Load your program from
  65.  tape into TI BASIC (it may be
  66.  necessary to unplug any modules,
  67.  since modules eat up VDP memory even
  68.  if you go to TI BASIC instead of the
  69.  module) and SAVE it to the Horizon
  70.  Ramdisk with SAVE DSK3.PROGRAM. 
  71.      2.  Check that your saved PROGRAM
  72.  works by typing NEW.  Then type OLD
  73.  DSK3.PROGRAM and when the cursor
  74.  appears type RUN. 
  75.      3.  Power down your system, then
  76.  power it up in the normal way with
  77.  the PE box on first and then the
  78.  console.  Use any disk manager to
  79.  save your PROGRAM to disk for
  80.  archival storage. 
  81.      4.  Now, every time you want to
  82.  run the program, put it on your
  83.  Horizon ramdisk (if it isn't already
  84.  there) and OLD and RUN it the normal
  85.  way.  Just remember to turn on your
  86.  console FIRST when you want to run
  87.  one of these large TI-BASIC programs
  88.  off the Horizon Ramndisk. 
  89.       
  90.      This technique is SO EASY
  91.  compared to loading from tape or
  92.  using the Smart Programmer's Mini
  93.  Memory method, and the technique
  94.  works for large XBASIC programs as
  95.  well if they list as a PROGRAM in a
  96.  disk directory. 
  97.  .PL 1
  98.