.TITLE MISHLP - Mish Help File .IDENT /1.0/ .ENABL LC ;+ ; ; Free software BY ; Project Software & Development, Inc. ; ; This software is furnished for free and may be used and copied as ; desired. This software or any other copies thereof may be provided or ; otherwise made available to any other person. No title to and ; ownership of the software is hereby transferred or allowed. ; ; The information in this software is subject to change without notice ; and should not be construed as a commitment by PROJECT SOFTWARE ; AND DEVELOPMENT, INC. ; ; PROJECT SOFTWARE assumes no responsibility for the use or reliability ; of this software on any equipment whatsoever. ; ; Project Software & Development, Inc. ; 14 Story St. ; Cambridge, Ma. 02138 ; 617-661-1444 ; ; ; Title: MISHLP.MAC ; Author: Robin Miller ; Date: November 15, 1982 ; ; Description: ; ; Help file for MISH program. ; ; Modification History: ; ;- .ENABL AMA .NLIST BEX ; Macro to generate the help text table: .MACRO H HLPTXT .NCHR $$$, .PSECT $HLPS,RO,D,REL,CON $$$MSG=. .ASCII \HLPTXT\ .PSECT .WORD $$$MSG .WORD $$$+2 .ENDM ; Generate the help text. HLPTBL: H <> H H H H H H H <> H H <> H < input_file/switches output_file/switches> H <> H H <> H < /ANALYZE - Used to analyze the header record and/or data of a file> H < which has been compressed. Additional sub-switches that> H < can be used are /DATA, /OCTAL, & /REVERSE.> H < /COMPRESS - Used to compress files. This is the default mode.> H < /DECOMPRESS - Used to decompress files into their original file format.> H <> .WORD 0,0 ; End of help table. ; Action routine to output the help information. HELP:: CALL $SAVAL ; Save all registers. MOV #TOFDB,R0 ; Address of terminal output FDB. MOV #HLPTBL,R3 ; Address of help text table. 10$: MOV (R3)+,R1 ; Copy the buffer address. BEQ 20$ ; If EQ, end of table. MOV (R3)+,R2 ; Copy the buffer length. CALL WRTFDB ; Write it to the terminal. BR 10$ ; And loop until done. 20$: RETURN .END