home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / txtutl / lit.lbr / LIT.DOC < prev   
Encoding:
Text File  |  1987-09-24  |  1.1 KB  |  35 lines

  1. ** LIT.DOC **
  2.  
  3. Here is a simple way to convert a text file into a COM file
  4. which will display itself...Add this 'header' onto the front
  5. of your text file using PIP. That creates a new COM file
  6. which uses a BDOS function to display the text. Just make
  7. sure your text file has a '$' as its last character.
  8.  
  9. For example, suppose you want to create a COM file which
  10. will display the message
  11.  
  12. HELLO WORLD
  13.  
  14. on your screen. Create a text file (WORLD.TXT) which contains
  15. the following...
  16.  
  17. HELLO WORLD
  18. $
  19.  
  20. Now, use PIP to create the file WORLD.COM...
  21.  
  22.    pip WORLD.COM:=LIT.OBJ,WORLD.TXT
  23.  
  24. That is all there is to it...When you run WORLD.COM, it will
  25. display the message...
  26.  
  27. The source code for this program is very simple and was lifted
  28. from USER.ASM which appears in ZCMD29.LBR. I simply moved the
  29. stack to immediately follow the program code and added some
  30. fill characters (The fill characters may not really be needed,
  31. I just wanted to round out the sector for different application).
  32.  
  33. --Phillip Hansford
  34.   9/86
  35.