home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / JSAGE / ZSUS / SUBSCRIP / ZSUS1-08.LZH / ZMSAVE11.LBR / ZMSAVE10.DZC / ZMSAVE10.DOC
Text File  |  1990-05-21  |  2KB  |  45 lines

  1. MATESAVE is a CP/M program for use with the 8-bit version of PMATE.  Its
  2. function is to recover text from memory after one has exited from PMATE
  3. prematurely (i.e., before saving some text to disk) or unintentionally (such
  4. as when a system crash occurs).
  5.  
  6. To use MATESAVE you must first patch it for your configuration of PMATE. 
  7. Load PMATE using a debugger such as DDT and look at address 01C9h (PMATE
  8. version 3.21).  This address contains the address at which PMATE's text
  9. buffer begins (remember, the low byte of the address is at 01C9h, and the
  10. high byte is at 01CAh).  This address depends on your specific
  11. confgiuration, such as the size of your permanent macro area.  Confirm the
  12. address you found as follows.  Exit from the debugger; run PMATE normally
  13. and put some easily identified text in the T buffer; exit from PMATE; then
  14. reload the debugger and examine memory at the address found earlier to make
  15. sure it has the text.  If that fails, you can just scan memory until you
  16. find the text.  Then note the address at which it begins.
  17.  
  18. The address of the beginning of the text buffer must be patched into
  19. MATESAVE using a debugger.  The place to put it is at the beginning of the
  20. file at a place clearly identified by a text string pointer (address is
  21. 11Dh).
  22.  
  23. MATESAVE is invoked in one of three ways:
  24.  
  25.     MATESAVE /    This will dispaly a help screen describing the
  26.             program and explaining the syntax
  27.  
  28.     MATESAVE    Normal text saving - each of PMATE's buffers
  29.             (T and 0-9) is examined for text, and any text found
  30.             is saved in a file with the name BUFFER-n.TXT, where
  31.             n is the name of the buffer.  All pre-existing files
  32.             with names BUFFER-?.TXT are deleted before the new
  33.             ones are created, and messages are displayed on the
  34.             screen reporting on any text found and files
  35.             created.
  36.  
  37.     MATESAVE S    Same as above except that pre-existing BUFFER-?.TXT
  38.             files are not erased unless new ones are created in
  39.             order to save new text.
  40.  
  41. The source code is included in the library both as a source of instruction
  42. and as a guide for anyone who would like to make such a program for MS-DOS.
  43.  
  44.                 Jay Sage
  45.