Example 1. A ROMS Directive Example

infile.out --image --memwidth 16 ROMS { EPROM1: org = 0x00004000, len = 0x2000, romwidth = 8 files = { rom4000.b0, rom4000.b1} EPROM2: org = 0x00006000, len = 0x2000, romwidth = 8, fill = 0xFF00FF00, files = { rom6000.b0, rom6000.b1} }
Figure 12-5 The infile.out File Partitioned Into Four Output Filespartition_pru186.png

The map file (specified with the --map option) is advantageous when you use the ROMS directive with multiple ranges. The map file shows each range, its parameters, names of associated output files, and a list of contents (section names and fill values) broken down by address. Example 2 is a segment of the map file resulting from the example in Example 1.