home *** CD-ROM | disk | FTP | other *** search
- EDISK.PAS
- File examination and editing utility.
-
- Copyright (c) 1985 Future Communications, Atlanta, Georgia and published
- in the Public Domain for non-commercial use.
-
- SOURCE: Turbo Pascal
- Version compiled under: 3.0
- O/S: MSDOS 2.1, PCDOS 2.1, CP/M80 2.2
-
- To compile, edit EDISK.PAS to:
- (1) Select 24 or 25 line display
- (2) Select include files for operating system:
- MSDOS/PCDOS CP/M80
- ----------- -----------
- EDISK.PAS EDISK.PAS
- CMDLINE.MSD CMDLINE.CPM
- DISPLAY.INC DISPLAY.INC
- EDIT.INC EDIT.INC
-
- PURPOSE:
-
- Diskfile debugger in ASCII or hex.
-
- PARAMETERS
-
- Parameters are passed by Command Line
-
- DESCRIPTION:
-
- A>EDISK [filename]
-
- There are two modes in which this program operates, REVIEW
- and EDIT. The REVIEW mode is to view the file 128 bytes at
- a time and supports the following functions from the
- "Command:" prompt:
- ^X Display the previous block (decrement the block
- number).
- ^E Display the next block (increment the block
- number).
- S Set the block number.
- Z Position the file at the last block in the file.
- B Position the file at the first block in the file.
- E Enter edit mode.
- Q Exit the program.
- ? Display a list of commands (automatic when the
- program first starts up).
- P Print the displayed block on the printer.
- D Dump the entire file to the printer.
-
- When the EDIT mode has been entered, the cursor is posi-
- tioned at the first byte in the block in the hex region of
- the display. You may modify the block a nybble at a time in
- the hex region by entering any valid hex digit (case is
- ignored). In the ASCII region, you may enter any printable
- character into the block. The following control codes are
- valid in the EDIT mode:
- ^W Write the edited buffer out to the disk (this
- command must be invoked to modify the disk file).
- You are returned to the REVIEW mode when the
- buffer is written out.
- ^Q Quit the EDIT mode WITHOUT writing the buffer to
- the disk. You are returned to the REVIEW mode.
- ^O Swap ASCII and hex regions. The cursor will move
- to the byte being edited in the corresponding
- region.
- ^X Cursor down (+16 bytes in the buffer).
- ^E Cursor up (-16 bytes in the buffer).
- ^S Cursor left (one nybble in hex region and one byte
- in ASCII region).
- ^D Cursor right (one nybble in hex region and one
- byte in ASCII region).
-