home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / pg / pgnode / node2 / ramdsk.tip < prev    next >
Text File  |  2006-10-19  |  4KB  |  84 lines

  1.      RAMDSK.TIP  by Paul Globman
  2.                  copyright (c) 1990
  3.  
  4. This file will describe various entry addresses into RAMDSK.CO (c) which will
  5. allow the user to perform certain Datapac operations from a BASIC program.
  6.  
  7. RAMDSK.CO is a file transfer program which lists the Datapac files and allows
  8.  the user to move files between system RAM and Datapac RAM.  KILL and RENAME
  9. functions are also provided, and all operations are function key driven and
  10. require immediate user interaction.
  11.  
  12. One of the features of the Node ROM (which normally comes with the Datapac), is
  13.  the ROM entry point for a CALL from BASIC which would allow a variety of
  14. operations to be performed under program control.  Most of those ROM operations
  15. can also be accomplished with the RAMDSK.CO program so the user has not lost
  16. programming capabilities.
  17.  
  18. Entry points:     M100       T200
  19. -------------------------------------
  20.   FREE            61896      60053
  21.   KILL            61942      60099
  22.   LOAD            62300      60444
  23.   NAME            61998      60155
  24.   SAVE            62055      60212
  25.   SAVE1           62061      60218
  26.  
  27. After RAMDSK.CO has been LOADM'ed into its operating address, a BASIC program
  28. may CALL the above locations.  The user will be prompted for input and when the
  29. operation is complete, the BASIC program will resume.
  30.  
  31. NOTE: CALL FREE must precede CALL SAVE each time CALL SAVE is used (this
  32. applies to CALL SAVE1 also).
  33.  
  34. SAVE and SAVE1 are identical in function however SAVE will display RAM files 
  35. and SAVE1 will not.
  36.  
  37. These entry points will require user input but it is possible for the BASIC
  38. program to preset the user input (ie. load the keyboard buffer) so the
  39. appropriate input is encountered by the routine that is requesting input.  The
  40. following example will save the RAM file TEST.DO to the Datapac and overwrite
  41. the previous version (if one existed).
  42.  
  43. If the operation is aborted by not "replacing" a duplicate filename, the
  44. routine will not return to BASIC but instead will remain in the RAMDSK.CO
  45. program.  A "Y" can be included in the keyboard string after the second <cr>
  46. to force replacement if necessary (see line 3 of sample program below).
  47.  
  48.  
  49. 0 REM -------------  SAVE TO DATAPAC
  50. 1 CLEAR99,59838:LOADM"RAMDSK":K=-738
  51. 2 FR=60053:S1=60218
  52. 3 F$="TEST.DO"+CHR$(13)+CHR$(13)+"Y"
  53. 4 F=LEN(F$):POKEK,F:K=K-1
  54. 5 FORI=1TOF:J=I*2
  55. 6 POKEK+J,ASC(MID$(F$,I))
  56. 7 POKEK+J+1,0:NEXT
  57. 8 CALLFR:CALLS1
  58.  
  59.  
  60. This program is for the Tandy 200.  For the Model 100, only the first two line
  61. need be changed to...
  62.  
  63. 1 CLEAR99,61681:LOADM"RAMDSK":K=-86
  64. 2 FR=61896:S1=62061
  65.  
  66.  
  67. The LOAD routine will bring .DO and .CO files into RAM and continue in the
  68. BASIC program.  When LOADing a .BA program, the newly loaded program becomes
  69. the ACTIVE program and when the routine returns to BASIC an error may occur
  70. because the active program has been changed.  If the keyboard buffer had the
  71. string RUN+CHR$(13) (after the name of the program to be loaded) then the newly
  72. loaded BASIC program can be "chained" to as RUN<cr> will be entered from the
  73. keyboard buffer.
  74.  
  75. These entry locations would make it possible to auto-backup files from RAM to
  76. Datapac, or Datapac to disk.  Groups of programs/files can be loaded as "sets"
  77. of files.  Expanded database manipulation and other applications are now
  78. possible using these new programming opportunities available with RAMDSK.CO.
  79.  
  80. I would be happy to answer any questions directed to me on the SIG or in email.
  81.  
  82.  
  83. Paul Globman [72227,1661]
  84.