SYA13.DOC It shouldn't happen -- but it does. You're using your favorite word processor -- a report, letter, program, what-have-you -- and a glitch locks up the terminal. Maybe it was a static shock. Maybe noise on the powerline. Maybe you hit a weird combination of keys that caused an untrapped error. Who knows? But what you do know is this: Hours of work down the drain, because to get going again you have to cold boot. Of course, if you know a lot about how CP/M's memory works, have DDT or its equivalent available, don't overlay your text-in-memory with DDT or its clone, know where your word processor's edit space begins, know how to move the content of memory to 100H, know how to find the end of your text in memory, know how to figure the number of pages to save -- if you know ALL of the above you can save your assets and start over. Yes, you CAN. I've had to do it many times. But now there is a better way to SAVE YOUR ASSets - enter SYA. My friends use and like SYA. I think SYA can help a lot of people save their assets after a crash. SYA can be developed with equates for various editors and other popular programs. That's why I'm releasing the ASM code - use it as you will. SA's Commands. SYA is a 3k program that you should keep handy. Menu-driven, it can be figured out easily even if yu've not used it for a while. If you screw up, just exit SYA and invoke it again. Since you don't have to move memory around, you can try as many times as you like so long as you don't turn the power off. Here's what SYA does: . Starting at the beginning of the editor's storage space, SYA dumps memory to the console. .. DUMPing can be a screen-full at a time, or a line at a time. Set and reset as you like with the 'L' command. .. All control characters (exept CR,LF, & TAB) are filtered from the console, to keep the screen from doing weird graphic things. .. If you DUMP past your text, you'll get garbage on the screen, but that will stop eventually. Then you can do 'L', 'B', or 'T' - see below. .. If you get a long run of garbage without stopping (because SYA doesn't encounter a stopping character), hit any key to interrupt the DUMP, then do 'L', 'B', or 'T'. . After each screen, or each line in single-line mode, a SPACE or CR will continue DUMPING. . 'B' will ask you how many lines you want to back up. .. You can enter any value up to 255. (You can enter higher values if you're bull-headed, but you'll just end up with a smaller value than 255.) .. You cannot back up beyond the start of your editor's storage area -- if you try to do that SYA starts at the top of that area. . 'T' puts you at the TOP of the storage space again, and DUMPS from there. . 'L' (for LINES) asks if you want PAGING or SINGE-LINE dumping. .. Respond '1' for SINGLE-LINE, for PAGING. .. To return to PAGING from SINGLE-LINE, do 'L', . . 'S' will SAVE your file from its beginning to where you were when you typed 'S'. .. SYA asks if you really want to SAVE before inserting EOF character into memory. .. Then you're asked for the FILENAME into which to SAVE. Do NOT enter a period or FILETYPE - it defaults to .SYA. .. You can define the drive on which you want to save - be sure there's a disk in it. A saves to the currently logged drive. . 'M' gives you a MENU of options. . 'X' will EXIT. So will ^C. Setting Up SYA for Your System. I wrote SYA for my own and some friends' use. As of now it works only with Wordstar 3.0, and with the old TSC line editor. . I set it up for a friend's WordStar 3.0, and for my highly-modified TSC (which I call XED-22) line editor. You can easily set up SYA for YOUR favorite editor, or for any other program that uses a defined aread of memory for data (it should work for dBASE-II, SUPERCALC, etc.). . Setting up SYA requires understanding of how the editor for which it is installed works. .. That means identifying and defining the START of the editor's storage space (at locations 103 and 104 in DDT, least significant digit first). .. It may also require understanding of some other things - for example, my TSC editor doesn't store linefeeds (LF) in memory, and adds after each carriage return (0DH) 3 bytes that define the line number (LINO). .. Thus the TSC version of SYA must supply a LF after every CR, and must delete the LINO bytes. . I mention the above not because you care about TSC's Editor (in spite of it's amazing power and versatility, and low price, few people I know use it), but rather to illustrate that you may need to study how your editor works if you want to adapt SYA for your use. .. Finding the start of your edit space is not hard - create a short file with something like XYZZY, then look for XYZZY with DDT. Do that a few times 'till you're sure you have it right. .. Other stuff, you're on your own. As a starter, assume there's nothing else, try it, and see what hapens. .. You don't need SYA.ASM if it works for you after you simply plug in the top of your storage space with DDT at locations 103 and 104. Eric Stork Arlington VA April 1985 ###