home *** CD-ROM | disk | FTP | other *** search
- UNLOAD86.COM is a program that converts or "unloads" a file into it's INTeL
- hex representation. Alternately, it will also output a BNPF, BHLF, OR B10F
- type file for those users that require these formats. This program was
- written in response to the need to have INTeL hex files for downloading to
- an EPROM programmer. As MS-DOS programs don't support INTeL hex, the need
- to convert binary files to hex arose. Most development systems, INTeL, CP/M,
- & others do support INTeL hex, and most EPROM programmers expect it.
-
-
- Use of the program is simple:
-
-
- UNLOAD86 <RETURN>
-
- prints a breif help screen.
-
- The main form of the unload86 invocation is:
-
- UNLOAD86 FILENAME.TYP[/OPTIONS]
-
- There must be no spaces beween the filespec, and the slash! The options are:
-
- B output a BNPF file instead of INTeL hex. This option overrides any other
- selections. If the B option is chosen, no other options will work, and the
- program will output a straight 8-bit BNPF file, uless it has been modified
- for BHLF, or B10F.
-
- E forces the use of extended address records.
-
- P allows selection of an EPROM size so that all unused locations are filled
- with the user specified data (defaults to FF) This option is followed
- immediately by a parameter number 0-F. This parameter is:
-
- 0 32 bytes. Creates a file to fill a 32 byte ROM. All unused locations
- are filled with the user defined data. As with all these options, if the
- file is already longer than 32 bytes, an error message will be displayed
- on the system console, and the operation will be aborted. The file left in
- this case is a useful INTeL hex file, but isn't padded up to size as it is
- already too big for the device specified. 32 byte devices are generally
- little bipolar ROMs often used as memory decoders
-
- 1 64 bytes. This is also generally a bipolar device.
-
- 2 128 bytes. Bipolar.
-
- 3 256 bytes. 1702A EPROM, some bipolars
-
- 4 512 bytes. 2704 EPROM.
-
- 5 1k bytes. 2708 EPROM.
-
- 6 2k bytes. 2716 EPROM.
-
- 7 4k bytes. 2732 EPROM.
-
- 8 8K bytes. 2764 EPROM.
-
- 9 16K bytes. 27128 EPROM.
-
- A 32K bytes. 27256 EPROM.
-
- B 64K bytes. 27512 EPROM.
-
- C *128K bytes. 27010 EPROM.
-
- D *256K bytes. Not yet available.
-
- E *512K bytes. Not yet available.
-
- F *1M bytes. Not yet available.
-
- * These options force the generation of extended addressing and thus
- do not require the use of the 'E' option.
-
-
- It should be noted that all INTeL hex output, regardless of options selected,
- is padded up to the next 32 byte increment.
-
-
- EXAMPLES:
-
-
- UNLOAD86 FOOBAR.COM/B <-- produces a BNPF file called FOOBAR.BNP
-
- UNLOAD86 FOOBAR.COM/EB <-- produces a BNPF file called FOOBAR.BNP
-
- UNLOAD86 FOOBAR.COM/E <-- produces a hex file called FOOBAR.HEX
- w/extended addressing
-
- UNLOAD86 FOOBAR.COM <-- produces a hex file called FOOBAR.HEX
-
- UNLOAD86 FOOBAR.COM/P0 <-- produces a hex file called FOOBAR.HEX
- padded to 32 bytes.
-
- UNLOAD86 FOOBAR.COM/PF <-- produces a hex file called FOOBAR.HEX
- padded to 1M byte, w/ extended addressing
-
- UNLOAD86 FOOBAR.COM/PFE <-- produces a hex file called FOOBAR.HEX
- padded to 1M byte, w/ extended addressing
-
- UNLOAD86 FOOBAR.COM/EPF <-- produces a hex file called FOOBAR.HEX
- padded to 1M byte, w/ extended addressing
-
- UNLOAD86 FOOBAR.COM/EPFB <-- produces a BNPF file called FOOBAR.BNP
-
-
-
- Notes, patches, etc.:
-
- UNLOAD86 cannot realisticly handle binary input larger than a megabyte as
- the extended addressing scheme runs out of addresses. If you unload a file
- larger than 1 megabyte, the extended addressing will wrap around if it has
- been selected with the /E or the /Px options. When we get to a need for
- INTeL hex files derived from files of this size, hopefully INTeL will have
- come up with yet another patch to this specification. Of course, you could
- always use BNPF...
-
- There are several user patchable options that can be patched with DEBUG.
- They are as follows:
-
- 102: FF This is the data that is padded when using the /Px option.
- Change to meet your requirements.
-
- 103: 'PN' Change to 'HL' for BHLF output instead of BNPF, or '10' for B10F.
- Or any other two ASCII characters for other variations of this.
-
- 106: 'HEX' Output file type for INTeL hex. Change to meet your needs
-
- 10B: 'BNP' Output file type for BNPF. Change to 'BHL' for BHLF, or
- 'B10' for B10F, or to whatever filetype you prefer for this
- format.
-
- This program was written by Mark D. Pickerill on the Pro-Log ABL-2 CP/M
- microcomputer. (what else?) It bears no resemblance to UNLOAD 2.2 or
- 3.3 for CP/M by the same author.
-