
H. CONVERSION TOOL FROM HEX FILE
TO MEM FILE (16i/18i/21i/15i–A PMC C
LANGUAGE FUNCTION)
B–61863E–1/06
APPENDIX
540
This tool is executed in the command line on MS–DOS.
hex2mem.exe [–r –i –o –t –d] “Input file name” “Output file name”
Explanation of options
–r : Processed detailed display.
–i : Checksum of a Hex file is not done.
–o : ORIGIN ADDRESS of C language in the title data area is set
automatically. (ORIGIN ADDRESS in dic_data.txt is ignored.)
–t : DATE OF PROGRAMING in the title data area is set
automatically.
–tnp n : Format p : Delimitation character
There are the following 3 types at formats.
–t0 : 1997.01.31 (Same as “–t” is specified)
–t1 : JAN.31.97
–t2 : 31.JAN.97
In case of delimitation character “–”, specifies as follows:
–t0– : 1997–01–31
–t1– : JAN–31–97
–t2– :31–JAN–97
–d : An arbitrary title file can be specified.
–ddic.txt : A dic.txt can be used as a title file.
A input file name:
Specifies a Hex file.
Uniting with one file by using the “copy” command when there are
two or more Hex files.
A output file name:
Specifies an arbitrary file name of a Mem file.
The change of the title data changes the dic_data.txt file.
(The editor on the market is used.)
At this time, C PROGRAM ORIGN ADDRESS can be set. In addition,
C PROGRAM ORIGN ADDRESS can be set automatically by using
“–o” option of the tool.
[Example of use]
(1) In case of making a “sample.mem” file from a “sample.hex” file.
1. hex2mem.exe –o –t sample.hex sample.mem
The option “–o” is used. (ORIGIN ADDRESS of C language is
set automatically)
The option “–t” is used. (Date of today is set to the title data area)
The title data uses the content of the “dic_data.txt” file of default.
2. hex2mem.exe –ddic.txt sample.hex sample.mem
The title data is obtained from the content of the “dic.txt” file in
a current directory.
H.2
USE METHOD