home *** CD-ROM | disk | FTP | other *** search
-
-
-
- COM2DATA
- Filter
-
- ---------------------------------------------------------------
-
- Purpose: Converts a file of machine language code into a file
- of BASIC DATA statements. The data file may be merged
- into BASIC programs, thus simplifying the process of
- using machine language subroutines in BASIC.
-
- Format: COM2DATA [<infile] [>outfile] [linenumber]
-
- Type: Internal External
- ***
-
- Remarks: If a line number is given, COM2DATA numbers the
- statements beginning with the specified number,
- otherwise the numbering starts with 1000.
-
- COM2DATA acts as a standard DOS 2.0 filter, reading a
- COM file from STDIN and writing a file of BASIC data
- statements to STDOUT.
-
- This utility is supplied in source code form, suitable
- for input to CHASM. You must assemble it before use.
- Beginners may wish to study the source listing for
- some more advanced programming examples than provided
- by EXAMPLE.ASM. COM2DATA demonstrates approaches to
- such arcane topics as numeric I/O conversion, reading
- the DOS command line, and DOS 2.0 I/O redirection.
-
- This program requires DOS 2.0, and will abort under
- earlier versions.
-
- Copyright: 1984 by David Whitman. Part of the CHASM assembler
- package.