home *** CD-ROM | disk | FTP | other *** search
- CPMUG volume 78, documentation.
- 01/24/82 Ward Christensen
-
- I created this file is an attempt to supply documentation
- for all files which do not have a separate .DOC file.
- The following files have their own separate .DOC file:
- DUU, EPROM, SDCOPY SWAPCOPY
-
- ====> /.ASM, /.COM, /DUP.COM
-
- John M. Kodis, author, says: The "slant" program reads a
- command line which may contain several program invocations. A
- $$$.SUB file is built with these commands. This file is then
- executed.
-
- For example, the command line:
-
- / asm copy; load copy; dir copy*.*; type copy.prn
-
- will build a file containing commands to assemble and load the
- file named 'copy', search the directory for all copy programs,
- and type the COPY.PRN file.
-
- ====> BMAPORIG.ASM, BMAPORIG.COM
- Lauren Guimont wrote this "bit map print" program for CP/M
- 2.2 because the ALLOC program (CPMUG vol 40 the latest) was
- hard-coded for CP/M 1.4.
- USAGE: BMAPORIG or BMAPORIG disk:
- EX: BMAPORIG B:
-
- ====> CRCK.COM
- Keith Petersen's program is self documenting - just
- type CRCK with no operands. It then says:
-
- CRCK [drive:]<filename.filetype> [F]
-
- Examples:
-
- CRCK MYFILE.ASM Check only MYFILE.ASM
-
- CRCK *.ASM Check all .ASM files
-
- CRCK *.* F Check all files and make file
- of results <CRCKLIST.CRC>
-
- ====> D.COM
- Self documenting via "D HELP":
-
- fn, ft are specific, afn aft may be ambiguous (? and * allowed)
-
- D SET sets all filenames on disk into D.COM
- D shows added/erased files since D SET was done
- D ADD fn.ft adds a file to D.COM ("registers" it)
- D DEL afn.aft deletes a file from D.COM ("unregisters" it)
- D CU to Clean Up by selectively adding, erasing,
- or deleting files.
- D afn,aft 5-up directory list (e.g. D *.* or D *.ASM)
- (avoid fn of SET, ADD, DEL, CU)
-
- ====> DUH.COM, DUH.Z80
- Bill Norris put some documentation in the front of
- the .Z80 file. NOTE this is not DU itself, but rather a
- relocater for DU. It appears you would have to assemble
- DU twice, once for each address. DUH then is a program
- to compare the two .COM versions of DU, and make one
- relocatable version of them.
-
- ====> FMAP.COM
- Self documenting via "FMAP H":
- FMAP by Ward C. Help: FMAP fn.ft [option][.suboption]
- fn.ft: ? and * allowed.
-
- Opt Console out? To disk as: Usage:
- --- -------- -------------- --------
- / Y (across)
- B Y + bit map
- D Y $1 $2fn.ft $3 for SUBMIT
- F Y fn.ft UCAT input
- K fn.ft nnK
- L Y + seq# + #K
- M N $1 $2 $3fn.ft SUBMIT MODEM
- Q N fn.ft
- P N $1 $2fn.ft$3 SUBMIT PIP
- Unnn Users group catalog nnn to -CATALOG.nnn
- Suboptions: .S selects names as listed; .P output to printer;
- .Unn selects only user nn
-
- Some examples might make things clearer:
-
- B>fmap *.asm
- FMAP V2.3 - 12/07/81 FMAP H for help
- FILENAME TYP EX RC #K EXTENTS...
- / ASM 00 001F 04 12-15
- BMAPORIG ASM 00 004E 10 02-0B
- DUU ASM 00 0080 16 32-41
- DUU ASM 01 0080 16 42,79-83,88-8B
- DUU ASM 02 0080 16 8D-9C
- DUU ASM 03 0014 03 9D-9F
- EPROM ASM 00 003D 08 43-4A
- LPRINT ASM 00 000D 02 0C-0D
- MAKE ASM 00 005E 12 C0-CB
- NOTATE ASM 00 0017 03 4D-4F
- PATCH ASM 00 0017 03 CC-CE
- SWAPCOPY ASM 00 0070 14 66-73
- XREFPRN ASM 00 0080 16 1B-2A
- XREFPRN ASM 01 0035 07 2B-31
- 14 FILES, 130 K
-
- EX is the extent number
- RC is the hex record (sector) count. Someone asked if this
- is different for double density. No. This is the
- "logical" sector count, i.e. in 128-byte "chunks".
- #K is the decimal number of K in the extent. This properly
- reflects single/double density, i.e. single density
- typically allocates in 1K blocks, double in 2K or more.
- (Note the #K is still not right for files on a hard
- disk which are allocated with 4K or larger groups,
- technically, with "EXM>0" in the BIOS)
- EXTENTS is the physical location, in hex, of the file on disk.
- Contiguous blocks are shown as nn-mm;
-
- Further info on extents: a file is allocated in blocks of 1K,
- 2K, etc, on disk, depending upon the density. The directory
- starts in block 0, and usually occupies blocks 0 and 1. The
- first file placed on an empty disk starts in block 2. Each
- directory entry keeps track of 16 blocks; in double density,
- each keeps track of 8 blocks, because each block is 2K. Other
- options may be applied to larger disks, such as having one
- directory entry keep track of 32K.
-
- ====> IF.COM
- Allows you to conditionally abort or continue a SUBMIT,
- depending upon whether a file exists or not.
-
- Examples:
-
- if foo.zot continue ;continues submit if foo.zot exists
- if foo.zot abort ;aborts submit if foo.zot exists
-
- ====> LPRINT.ASM
- P.P.H. Lee, in the .ASM file, says:
- TO EXECUTE TYPE:
- LPRINT ON - EQUIVALENT TO STAT LST:=LPT:
- LPRINT OFF - EQUIVALENT TO STAT LST:=TTY:
-
- ====> MAKE.ASM
- Its author, Terry Lewis, writes: Changes directory user
- number, making program available to different user without
- rewriting program on disk. Changes only the user number.
-
- COMMAND:
- MAKE PIP.COM 5<cr> or
- MAKE *.ASM 3<cr> or
- MAKE ST?T.C?L 4<cr> or
-
- (any ambiguous or) ( Desired )
- MAKE (unambiguous CPM ) (USER number)
- ( filename.typ ) ( 0 to 15 )
-
- RESULT:
- The files specified will be changed from their current user
- number to the user number specified as the second command
- variable. They will no longer exist under the old user number
- but will show up under the new user number.
-
- ====> NOTATE.ASM, NOTATE.COM
- This program was originally distributed on volume 29, but
- somehow had many memory "hits" in it. Martin E. Nason fixed up
- those hits so it would re-assemble.
- The program is used to add comments to .ASM files which
- have "sparse" comments. It types the file, and on any line
- which does not have a comment, prints the line, a tab, a
- semicolon, then awaits input. If you press return, the line is
- left, without the "tab;". Anything you type will be added to
- the line.
-
- ====> PATCH.ASM
- Adequate documentation to implement it is contained in the
- .ASM file.
-
- ====> REPEAT.COM
- Repeat a .SUB file "nn" times. Used in two "phases":
- (1) type "REPEAT nn" to set things up (just stores a count
- at 8.
- (2) Place "REPEAT" in your .SUB file immediately before a
- line re-submitting the original file.
- EX:
-
- First, type
-
- REPEAT 5
-
- Then have your submit file be:
- blah
- blah
- blah
- repeat
- submit foo
-
- When repeat executes with no operands, it decrements the
- count at 8, and if 0, erases $$$.SUB.
-
- ====> TESTPROT.BAS, UN.COM
- Author Bill Norris says: UN.COM is used to recover
- protected MBASIC programs. TESTPROT.BAS is a simple demo
- program which has been written in MBASIC and has been
- protected. (No real reason for including it though... Also, if
- you compile it, the program will run a LOT slower.)
- Unprotects protected programs. No other documentation
- exists other than that which is part of the .COM file. The
- .COM file acts as both a normal executable program, and as the
- documentation. ( It may be sent to the console via 'A>TYPE
- UN.COM'. Also, part of the above documentation will go to the
- console if the user types 'UN HELP'.)
-
- ====> XREFPRN.ASM, XREFPRN.COM
- P.P.H. Lee modified CPMUG XREF from volume 8 (or 36?)
- to work with PRN files.
- Usage: XREFPRN name.PRN
- Goes directly to the CP/M LIST device.
-