/* Hex Conversion Command file for Scenario 2 */
a.out /* linked object file, input */
-I /* Intel format */
/* The following two options are optional */
-map example2.mxp /* Generate a map of the conversion */
-o example2.hex /* Resulting Hex Output file */
/* Specify EPROM system Memory Width and Physical ROM width */
-memwidth 16 /* EPROM memory system width */
-romwidth 16 /* Physical width of ROM */
ROMS
{
EPROM: origin = 0x0, length = 0x20000
}
SECTIONS
{
secA: paddr = 0x0
secB: paddr = 0x1000
}
Example 6 shows the contents of the resulting map file (example2.mxp). Figure B-4 shows the contents of the resulting hex output file (example2.hex).