1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.1.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>makerom[.TWL]</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9<STYLE type="text/css"> 10<!-- 11.sample_source{ 12 background-color : #e8e8e8; 13} 14H3{ 15 color : teal; 16} 17.command_list{ 18 margin-bottom : 16pt; 19} 20.command_desc{ 21 } 22.command_item{ 23 margin-top : 16pt; 24 background-color : #e8e8e8; 25} 26.blockquoted_table { 27 border : 1px; 28 width : 80%; 29} 30TD,TH{ 31 border-color : #c0d8d8; 32 padding : 1pt 4pt 1pt 4pt; 33 border-width : 1px; 34 border-style : solid; 35} 36--> 37</STYLE> 38</HEAD> 39<BODY> 40<H1 align="left">makerom <IMG src="../image/NTR.gif" align="middle"></H1> 41<H1 align="left">makerom.TWL <IMG src="../image/TWL.gif" align="middle"></H1> 42<H2>Description</H2> 43<P>The <code>makerom</code> tool creates ROM images for NITRO applications. It creates the ROM image based on the entries in a file called the ROM Spec file.</P> 44<P><CODE>makerom.TWL</CODE> is a tool that adds the ability to create ROM images for TWL to the features of the <CODE>makerom</CODE> tool. It has more parameters that can be specified.</P> 45<P>ROM images for TWL that are created with this tool will only run on TWL development hardware. The TWL-SDK environment cannot be used to create ROM images that run on retail TWL hardware. (ROM images created for NITRO will not run on retail TWL hardware, either.)</P> 46 47<H2>How to Use</H2> 48<H3>Start Command</H3> 49<H4>(1) Normal Start</H4> 50<PRE><CODE>% makerom [-d] [-DNAME=VALUE...] [-MDEFINES_FILE] [-F] [-A] 51 [-VFMT_VER] [-WWARNING_TYPE] SPECFILE [ROMFILE] [LISTFILE]</CODE></PRE> 52<PRE><CODE>% makerom.TWL [-DTARGET_PLATFORM=<I>target</I>] [-d] [-DNAME=VALUE...] [-MDEFINES_FILE] [-F] [-A] 53 [-VFMT_VER] [-WWARNING_TYPE] SPECFILE [ROMFILE] [LISTFILE]</CODE></PRE> 54<P>This links files in accordance with the contents of the ROM Spec file specified by <code>SPECFILE</code>, and creates a ROM image file named <code>ROMFILE</code>. (The ROM Spec file is described below.) At this stage, the ROM structure information is output to the file specified by <code>LISTFILE</code>.</P> 55<P><CODE>ROMFILE</CODE> and <CODE>LISTFILE</CODE> can be omitted. If you omit them, the two files use the same name as that specified by <CODE>SPECFILE</CODE> but with the extension changed to ROM and NLF, respectively. You can also use the <code>-D</code> option to define a variable and its value. The value of this variable can be referenced in the contents of the ROM Spec file.</P> 56<P>When using the <CODE>-D</CODE> option with <CODE>makerom.TWL.exe</CODE>, you must specify the <SPAN class="argument">target</SPAN> parameter in <CODE>TARGET_PLATFORM</CODE>. Specify <CODE>TWL-HYB</CODE> for the <SPAN class="argument">target</SPAN> parameter to build a TWL-enhanced application and <CODE>TWL-LTD</CODE> to build a TWL-exclusive application. Normally, the build system specifies the appropriate value.<FONT color="#ff0000">If this specification is not made, <CODE>'TWL-LTD'</CODE> is set by default.</FONT> 57 58<P>You can define variables and their values with the <CODE>-M</CODE> option, similar to the <CODE>-D</CODE> option. This takes as an argument a text file consisting of <CODE>[NAME=VALUE]</CODE> lines. Use this option to encode definitions of variables and variable values that might otherwise be too long for the length restrictions of the command line.<FONT color="#ff0000">When you use the <CODE>-D</CODE> option to define variable values that include whitespace (such as when enumerating object filenames), you must delimit the values with either <CODE>"</CODE> or <CODE>'</CODE> because of how command line arguments are interpreted. However, when you use the <CODE>-M</CODE> option, variable values coded inside the definition file do not need to be delimited with quotation marks. If you use quotation marks, they are taken as part of the value itself.</FONT></P> 59<P>When the <code>-F</code> option is specified, a ROM image file is created even if the ROM file size exceeds the size limit (see <code>RomSize</code> in the <code>Property</code> section).</P> 60<P>If you specify the <code>-A</code> option, a check is performed to determine whether the ROM size limit (see <code>RomSize</code> in the <CODE>Property</CODE> section) is exceeded when adding a digital signature with the <a href="attachsign.html"><code>attachsign</code></a> command. Exceeding the limit causes an error. However, if the above-mentioned <code>-F</code> option has been specified, processing continues anyway.</P> 61<P><FONT color="#ff0000">Use the <CODE>-V</CODE> option to specify the output ROM image format number <CODE>FMT_VER</CODE>. This option ensures compatibility with previous versions. The default value is 2. For details, see <B>ROM Format Versions</B> below.</FONT></P> 62<P>The <code>-W</code> options output warnings that are normally suppressed. With <code>-Wrom_speedtype_undefined</code>, warnings are displayed when <code>RomSpeedType</code> in the <CODE>Property</CODE> section is not explicitly defined and is instead left in the SDK default setting. With the <code>-Wall</code> option, all warnings are output.</P> 63<P>The <code>-d</code> option is for outputting messages when debugging <code>makerom</code>. This is usually not necessary.</P> 64<H4>(2) The -l Option</H4> 65<P><CODE>% makerom [-d] [-DNAME=VALUE...] [-MDEFINES_FILE] [-VFMT_VER] -l SPECFILE [LISTFILE]</CODE></P> 66<P><CODE>% makerom.TWL [-d] [-DNAME=VALUE...] [-MDEFINES_FILE] [-VFMT_VER] -l SPECFILE [LISTFILE]</CODE></P> 67<P>This operates in the same way as the Normal Start method (1) except that a ROM image is not output. The file specified by <code>SPECFILE</code> is loaded, and the ROM structure information is output to <code>LISTFILE</code>.</P> 68<P><CODE>LISTFILE</CODE> can be omitted. If you omit it, the filename is set to the name specified by <CODE>SPECFILE</CODE>, with the extension replaced by the default extension for each platform. The default extension when creating NITRO ROM images is NLF, and the default extension when creating TWL ROM images is TLF. The <code>-D</code> option can be used to define a variable and its value. The value of this variable can be referenced in the contents of the ROM Spec file.</P> 69<P>The <code>-V</code> option behaves the same as described above in <B>(1) Normal Start</B>.</P> 70<H4>(3) The -r Option</H4> 71<P><CODE>% makerom [-d] [-F] [-A] [-VFMT_VER] -r LISTFILE [ROMFILE]</CODE></P> 72<P><CODE>% makerom.TWL [-d] [-F] [-A] [-VFMT_VER] -r LISTFILE [ROMFILE]</CODE></P> 73<P>This command constructs a ROM image from the ROM structure information specified by <code>LISTFILE</code> and outputs it as a file with the name specified by <code>ROMFILE</code>.</P> 74<P><CODE>ROMFILE</CODE> can be omitted. If you omit it, the filename is set to the same name as that specified by <CODE>SPECFILE</CODE>, but with the extension ROM.</P> 75<P>The <code>-F</code>, <code>-A</code>, and <CODE>-V</CODE> options behave in the same way as described above in <B>(1) Normal Start</B>.</P> 76 77<h4>(4) The -m Option</h4> 78<p><code>% makerom -m [ROMFILE] [ROMPATH] [HOSTPATH]</code></p> 79<p><code>% makerom.TWL -m [ROMFILE] [ROMPATH] [HOSTPATH]</code></p> 80<p>Replaces the content of the file specified by <code>HOSTPATH</code> with the content of the file stored at <code>ROMPATH</code> in the SRL file specified by <code>ROMFILE</code>. Using this option is effective when it is acceptable to replace only a single piece of data stored in an existing SRL file. 81<ul> 82<li>You must specify <code>ROMPATH</code> as a ROM archive path, such as "<code>rom:/foo/bar.dat</code>." </li> 83<li>The file specified by <code>HOSTPATH</code> must have the same size as the file, specified by <code>ROMPATH</code>, to be replaced.</li> 84</ul> 85</p> 86 87<H3>ROM Spec File Format</H3> 88<P>The contents of NITRO and TWL ROM images are managed using a simple file system. The ROM Spec file is a text file that encodes the structure of this file system. The file is divided into four sections for NITRO and six sections for TWL. <FONT color="#ff0000">The ROM Image Section must come after all other sections.</FONT>Section definitions are formatted with a declaration at start of each section definition, followed by section parameters enclosed in curly brackets (<CODE>{ }</CODE>). 89</P> 90<TABLE> 91 <TBODY> 92 <TR> 93<TH>Section Definition</TH> 94<TH>Section Definition Format</TH> 95 </TR> 96 <TR> 97<TD>ARM9 Executable Binary<BR> <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></TD> 98 <TD> 99 <PRE><CODE>Arm9 100{ 101 <I>[ARM9 parameters]</I> 102 .... 103}</CODE></PRE> 104 </TD> 105 </TR> 106 <TR> 107<TD>ARM7 Executable Binary<BR> <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></TD> 108 <TD> 109 <PRE><CODE>Arm7 110{ 111 <I>[ARM7 parameters]</I> 112 .... 113}</CODE></PRE> 114 </TD> 115 </TR> 116 <TR> 117<TD>ARM9 TWL-Exclusive Executable Binary<BR><IMG src="../image/TWL.gif" align="middle"></TD> 118 <TD> 119 <PRE><CODE>Arm9.Ltd 120{ 121 <I>[ARM9 TWL-exclusive parameters]</I> 122 .... 123}</CODE></PRE> 124 </TD> 125 </TR> 126 <TR> 127<TD>ARM7 TWL-Exclusive Executable Binary<BR><IMG src="../image/TWL.gif" align="middle"></TD> 128 <TD> 129 <PRE><CODE>Arm7.Ltd 130{ 131 <I>[ARM7 TWL-exclusive parameters]</I> 132 .... 133}</CODE></PRE> 134 </TD> 135 </TR> 136 <TR> 137<TD>Incidental<BR>Information<BR> <CODE>(Property)</CODE><BR> <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></TD> 138 <TD> 139 <PRE><CODE>Property 140{ 141 <I>[Incidental information parameters]</I> 142 .... 143}</CODE></PRE> 144 </TD> 145 </TR> 146 <TR> 147<TD>Additional<BR>Incidental<BR>Information<BR> <CODE>(AppendProperty)</CODE><BR> <IMG src="../image/TWL.gif" align="middle"></TD> 148 <TD> 149 <PRE><CODE>AppendProperty 150{ 151 <I>[Additional incidental information parameters]</I> 152 .... 153}</CODE></PRE> 154 </TD> 155 </TR> 156 <TR> 157<TD>Rating Information<BR> <CODE>(Rating)</CODE><BR> <IMG src="../image/TWL.gif" align="middle"></TD> 158 <TD> 159 <PRE><CODE>Rating 160{ 161 <I>[Rating information parameters]</I> 162 .... 163}</CODE></PRE> 164 </TD> 165 </TR> 166 <TR> 167<TD>ROM Image<BR> <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></TD> 168 <TD> 169 <pre><code>RomSpec 170{ 171 <i>[ROM image parameters]</i> 172 .... 173}</code></pre> 174 </TD> 175 </TR> 176 </TBODY> 177</TABLE> 178<H3>Section Parameters</H3> 179<H4>ARM9 Section (ARM9 Executable Binary Definition Section) <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></H4> 180<P>Configures settings for ARM9-side executable binaries.</P> 181<BLOCKQUOTE> 182<DL class="command_list"> 183<DT class="command_item"><CODE>Static</CODE> <I>[ARM9 Static Module filename]</I> 184<DD class="command_desc">Filename of the static module of the ARM9 executable file. 185<DT class="command_item"><CODE>OverlayDefs</CODE> <I>[ARM9 Overlay Names filename]</I> 186<DD class="command_desc">Filename of the ARM9 <CODE>OverlayDefs</CODE> file. 187<DT class="command_item"><CODE>OverlayTable</CODE> <I>[ARM9 OverlayTable filename]</I> 188<DD>Filename of the ARM9 <CODE>OverlayTable</CODE> file. This file is not needed if overlays are not used. In such cases, you can omit the <CODE>OverlayTable</CODE> define statement.<br>However, this omission cannot be made when using overlays in the Arm9.Ltd section. 189<DT class="command_item"><CODE>Nef</CODE> <I>[ARM9 NEF or TEF (debug information file) filename]</I> 190<DD class="command_desc">NEF file in which ARM9 debug information is saved. 191<DD class="command_desc">If you will not perform debugging, this <CODE>NEF</CODE> definition is not needed. If so, it can be omitted from the file.<BR>Instead of <code>Nef</code>, you can use the alternative keyword <code>Elf</code>. 192</DL> 193</BLOCKQUOTE> 194<H4>ARM7 Section (ARM7 Executable File Definition Section) <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></H4> 195<P>Configures settings for ARM7-side executable binaries.</P> 196<BLOCKQUOTE> 197<DL class="command_list"> 198<DT class="command_item"><CODE>Static</CODE> <I>[ARM7 Static Module filename]</I><BR> <CODE>OverlayDefs</CODE> <I>[ARM7 Overlay Names filename]</I><BR> <CODE>OverlayTable</CODE> <I>[ARM7 OverlayTable filename]</I><BR> <CODE>Nef</CODE> <I>[ARM7 NEF or TEF (debug information file) filename]</I> 199<DD class="command_desc">Same as the ARM9 parameters. 200</DL> 201</BLOCKQUOTE> 202<H4>Arm9.Ltd Section (ARM9 TWL-Exclusive Executable Binary Definition Section) <IMG src="../image/TWL.gif" align="middle"></H4> 203<P>Configures settings for ARM9-side executable binaries that are only used when the application is run on a TWL.</P> 204<BLOCKQUOTE> 205<DL class="command_list"> 206<DT class="command_item"><CODE>Static</CODE> <I>[ARM9 TWL-Exclusive Static Module filename]</I><BR> <CODE>OverlayDefs</CODE> <I>[ARM9 TWL-Exclusive Overlay Names filename]</I><BR> <CODE>OverlayTable</CODE> <I>[ARM9 TWL-Exclusive OverlayTable filename]</I><BR> 207<DD class="command_desc">Same as the ARM9 parameters. 208</DL> 209</BLOCKQUOTE> 210<H4>Arm7.Ltd Section (ARM7 TWL-Exclusive Executable File Definition Section) <IMG src="../image/TWL.gif" align="middle"></H4> 211<P>Configures settings for ARM7-side executable files that are only used when the application is run on a TWL.</P> 212<BLOCKQUOTE> 213<DL class="command_list"> 214<DT class="command_item"><CODE>Static</CODE> <I>[ARM7 TWL-Exclusive Static Module filename]</I><BR> <CODE>OverlayDefs</CODE> <I>[ARM7 TWL-Exclusive Overlay Names filename]</I><BR> <CODE>OverlayTable</CODE> <I>[ARM7 TWL-Exclusive OverlayTable filename]</I><BR> 215<DD class="command_desc">Same as the ARM9 parameters. 216</DL> 217</BLOCKQUOTE> 218<H4>Property Section (Incidental Information Definition Section)</H4> 219<P>The "◎" symbol indicates settings that must be specified when creating the master ROM.</P> 220<P><B>Property Section (Items Common to NITRO/TWL)</B> <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></P> 221<BLOCKQUOTE> 222<DL class="command_list"> 223<DT class="command_item"><CODE>RomHeaderTemplate</CODE> <I>[ROM Header Template filename]</I> ◎ 224<DD class="command_desc">Template file for the ROM image header. When not specified, the default setting is <code>"rom_header.template.sbin"</code> in the same directory as <CODE>makerom[.TWL].exe</CODE>. For the filename, specify the name of the master ROM template file (distributed by Nintendo) for each game application to use when creating the master ROM.<FONT color="#FF0000">We do not recommend modifying the binary contents of the ROM header template file.</FONT>Set the incidental information for each master ROM by encoding the parameters below (such as <CODE>TitleName</CODE>) in a ROM Spec file. 225<DT class="command_item"><code>TitleName</CODE> <I>[Title name]</I> ◎ 226<DD class="command_desc">Title name. Up to 12 alphanumeric ASCII-encoded characters. When it is shorter than 12 characters, the unused area is padded with zeros. When not specified, the value embedded in <CODE>RomHeaderTemplate</CODE> is used. 227<DT class="command_item"><code>MakerCode </CODE> <I>[Manufacturer code]</I> ◎ 228<DD class="command_desc">Manufacturer code that was assigned when the licensing agreement was signed with Nintendo. Two ASCII characters. 229<DD class="command_desc">When not specified, the value embedded in <CODE>RomHeaderTemplate</CODE> is used. 230<DT class="command_item"><CODE>RemasterVersion</CODE> <I>[Remaster version]</I> ◎ 231<DD class="command_desc">Remaster version number of the ROM being manufactured for retail products. Hexadecimal, decimal, or octal notation can be used. When not specified, the value embedded in <CODE>RomHeaderTemplate</CODE> is used. This is equivalent to the "ROM version" used in earlier versions. In previous versions of <CODE>makerom</CODE>, the definition of the term "ROM version" differed from Nintendo's standard definition, so this parameter's name was changed. For compatibility with previous ROM Spec files, the <CODE>"RomVersion"</CODE> keyword can be used as an alternate name. 232<DT class="command_item"><CODE>RomSpeedType</CODE> <I>[1TROM|MROM|UNDEFINED]</I> ◎ 233<DD class="command_desc">Defines the ROM type and selects the proper access speed. <CODE>1TROM</CODE> specifies one-time PROM, and <CODE>MROM</CODE> specifies mask ROM. Because one-time PROM is the slower setting, if one-time PROM is selected, both one-time PROM and mask ROM will operate. However, the reverse is not true. 234<DD>If this parameter is not specified, it is treated as if <CODE>UNDEFINED</CODE> is specified. <CODE>UNDEFINED</CODE> takes the same setting for access speed as <CODE>1TROM</CODE>. However, when this parameter is <CODE>UNDEFINED</CODE>, a warning flag is set in the ROM registration data when the ROM binary is created, so that binary cannot be submitted as the final master ROM. This prevents the mistake of shipping the master ROM with the limited access speed unintentionally set. When creating the final master ROM, always specify either <CODE>1TROM</CODE> or <CODE>MROM</CODE> in the ROM Spec file. 235<DT class="command_item"><CODE>RomSize</CODE> <I>[64M|128M|256M|512M|1G|2G|4G]</I> ◎ 236<DD class="command_desc">ROM capacity in bits. At present, you can select from <CODE>64M</CODE>, <CODE>128M</CODE>, <CODE>256M</CODE>, <CODE>512M</CODE>, <CODE>1G</CODE>, <CODE>2G</CODE>, or <CODE>4G</CODE>, specified as a string.<BR>An error is output if the ROM image exceeds the specified value. (If the <CODE>-F</CODE> option is specified, only a warning is output.)<BR>However, if you specify 1 gigabit (<CODE>1G</CODE>) or more, note that this specified value will differ from the actual usable size. (For details, see <A href="#ROMFORMAT_VER">ROM Format Versions</A>.)<BR>When no specification is made, the value embedded in <CODE>RomHeaderTemplate</CODE> (currently <CODE>2G</CODE>) is used.<BR><FONT color="#FF0000">With NAND applications, this specification is ignored and optimum values are selected automatically.</FONT> 237<DT class="command_item"><CODE>RomFootPadding</CODE> <I>[TRUE|FALSE]</I> ◎ 238<DD class="command_desc">Specify <CODE>TRUE</CODE> if you want to fill the unused region above the program storage area in ROM with data to create a binary that matches the ROM capacity specified by <CODE>RomSize</CODE>. The data stored in the unused region is the value specified with the <CODE>Padding</CODE> parameter in the <CODE>RomSpec</CODE> section. To enable this feature, you must specify <CODE>RomSize</CODE>. If this parameter is not specified, it takes the value <CODE>FALSE</CODE>.<BR><FONT color="#FF0000">For NAND applications, always specify <CODE>FALSE</CODE>.</FONT> 239<DT class="command_item"><CODE>RomHeader</CODE> <I>[ROM Header filename]</I> 240<DD>Name of the image file forming the header portion of the ROM image. This file is generated by embedding information from the ROM Spec file (and any other appropriate sources) into a copy of the template mentioned above. 241<DD>Normally there is no need to specify this. When it is not specified, a default filename is created by removing the file extension from the ARM9 static module filename, then appending <CODE>_header.sbin</CODE>. 242<DT class="command_item"><CODE>FileName</CODE> <I>[FileNameTable filename]</I> 243<DD>Name of the image file in the filename table portion of the ROM file system. This file is generated from the <CODE>RomSpec</CODE> item in the ROM Spec file. Normally there is no need to specify this. When not specified, a default filename is created by removing the file extension from the ARM9 static module filename, then appending <CODE>_files.sbin</CODE>. 244<DT class="command_item"><CODE>BannerFile</CODE> <I>[Banner filename]</I> ◎ 245<DD class="command_desc">The banner file composed of the application identification image information and displayed on the NITRO startup menu. 246<DT class="command_item"><CODE>ForChina</CODE> <I>[TRUE|FALSE]</I> 247<DD class="command_desc">Whether this application supports running on Chinese version systems. It will run on the Chinese version of the system only when this property is set to <CODE>TRUE</CODE>. Also, to determine if the Chinese language was selected on a Chinese version of the System Settings menu, this property must be set to <CODE>TRUE</CODE>.<BR><FONT color="#FF0000"><CODE>FALSE</CODE> results if there is no specification. Instead, the English language code is obtained. The value embedded in <CODE>RomHeaderTemplate</CODE> is not used.</FONT> 248<DT class="command_item"><CODE>ForKorea</CODE> <I>[TRUE|FALSE]</I> 249<DD class="command_desc">Whether the application supports running on Korean version systems. Setting this property to <CODE>TRUE</CODE> does not apply any limits on the systems on which the applications can run. Also, to determine if the Korean language was selected on a Korean version of the System Settings menu, this property must be set to <CODE>TRUE</CODE> ahead of time. <CODE>FALSE</CODE> results if there is no specification. Instead, the English language code is obtained. The value embedded in <CODE>RomHeaderTemplate</CODE> is not used.</FONT> 250<DT class="command_item"><CODE>PermitLandingTmpJump</CODE> <I>[TRUE|FALSE]</I> 251<DD class="command_desc">Specify <CODE>TRUE</CODE> only if instructed to do so. The default is <CODE>FALSE</CODE>. 252 253</DL> 254</BLOCKQUOTE> 255<P><B>Property Section (TWL-Exclusive Items)</B> <IMG src="../image/TWL.gif" align="middle"></P> 256<BLOCKQUOTE> 257<DL class="command_list"> 258<DT class="command_item"><CODE>RomHeaderLtd</CODE> <I>[ROM Header Template filename]</I> ◎ 259<DD class="command_desc">Template file for the header of the ROM image TWL-exclusive region.<BR>Normally, specify <CODE>$(TWLSDK_ROOT)/tools/bin/rom_header.LTD.sbin</CODE>. 260<DT class="command_item"><CODE>DigestParam</CODE> <I>1024 32</I> ◎ 261<DD class="command_desc">Specifies the units for calculating the hash-check table, described in the <a href="../fs/overview/about_Archive.html#ROM">ROM Archive Overview</a> in the FS library. Do not change the arguments from <CODE>1024 32</CODE>. 262<DT class="command_item"><CODE>WramMapping</CODE> <I>[MAP2_TS_HYB|MAP2_TS_LTD]</I> ◎ 263<DD class="command_desc">Specifies the WRAM memory mapping. Specify <CODE>MAP2_TS_HYB</CODE> for a HYBRID ROM, and <CODE>MAP2_TS_LTD</CODE> for a LIMITED ROM.<BR>Normally, specifying <CODE>$(MAKEROM_WRAM_MAPPING)</CODE> ensures that the build system sets this appropriately. 264<DT class="command_item"><CODE>CardRegion</CODE> <I>[Japan|America|Europe|Australia|EuropeAndAustralia|AmericaAndAustralia|AmericaEuropeAndAustralia|China|Korea]</I> ◎ 265<DD class="command_desc">Software's region.<BR><FONT color="#FF0000"><B>Note:</B> If the software region and system region differ, the launcher will not recognize the software.<BR>Although <CODE>ALL</CODE> has been set for the samples, that is a demo-specific setting and cannot be used when submitting a master ROM.</FONT><BR>To specify <CODE>China</CODE>, you must also set the <CODE>ForChina</CODE> property to <CODE>TRUE</CODE>. To specify <CODE>Korea</CODE>, you must also set the <CODE>ForKorea</CODE> property to <CODE>TRUE</CODE>. 266<DT class="command_item"><CODE>CodecMode</CODE> <I>[NTR|TWL]</I> ◎ 267<DD class="command_desc">Specifies the CODEC operating mode when the application is run on a TWL system. For details on the CODEC operating mode, see <a href="../snd/sndex/doc/aboutSNDEX.html">TWL Extended Sound Features: Overview</a>. Specify <CODE>NTR</CODE> to run in CODEC-DS mode, and <CODE>TWL</CODE> to run in CODEC-TWL mode.<BR>Normally, specifying <CODE>$(MAKEROM_CODEC_MODE)</CODE> ensures that the build system sets this appropriately. 268<DT class="command_item"><CODE>WiFiConnectionIcon</CODE> <I>[TRUE|FALSE]</I> 269<DD class="command_desc">Specifies whether to display the Nintendo Wi-Fi Connection icon simultaneously when displaying the software's banner in the launcher. By displaying the icon on the launcher, you can start Nintendo Wi-Fi Connection when your application starts up, without having to get the user's consent again. To start Wi-Fi Connection at boot time, you must also specify <CODE>AgreeEULA</CODE>.<BR>If you specify this parameter and the wireless feature is then turned off under System Settings, it will become impossible to start the application from the launcher. Only specify this for applications that require wireless communication. <BR><CODE>TRUE</CODE> cannot be specified at the same time as <CODE>DSWirelessIcon</CODE>. If both specifications are required, prioritize the <CODE>WiFiConnectionIcon</CODE> specification.<BR>The default is <CODE>FALSE</CODE>. 270<DT class="command_item"><CODE>DSWirelessIcon</CODE> <I>[TRUE|FALSE]</I> 271<DD class="command_desc">Whether to display the DS Wireless icon simultaneously when displaying the software's banner in the launcher. By displaying the icon on the launcher, you can start DS Wireless Play when your application starts up, without having to get the user's consent again.<BR> If you specify this parameter and then turn off the wireless feature via System Settings, it is impossible to start the application from the launcher. Only specify this for applications that require wireless communication. <BR><CODE>TRUE</CODE> cannot be specified at the same time as <CODE>DSWirelessIcon</CODE>. If both specifications are required, prioritize the <CODE>WiFiConnectionIcon</CODE> specification.<BR>The default is <CODE>FALSE</CODE>. 272<DT class="command_item"><CODE>AgreeEULA</CODE> <I>[TRUE|FALSE]</I> 273<DD class="command_desc">Whether to prevent software from being started from the launcher if the user has not agreed to the terms of use. Specify <CODE>TRUE</CODE> only if an Internet connection is <FONT color="#FF0000">required</FONT> while using the software.<BR>If you specify this parameter, you must also specify <CODE>WiFiConnectionIcon</CODE>.<BR>Specify <CODE>FALSE</CODE> if an Internet connection is not required, but a service that uses the Internet, such as Nintendo Wi-Fi connection, is being supported as <FONT color="#FF0000">one of many features</FONT>. In such cases, instead of specifying this parameter, implement a mechanism in the game software to confirm that the user has agreed to the terms of use before attempting to connect to the Internet. (Agreement with the terms of use is checked by the TWL-DWC library. For details, see the TWL-DWC function reference manual.)<BR>The default is <CODE>FALSE</CODE>. 274<DT class="command_item"><CODE>PhotoAccess</CODE> <I>[Read|ReadWrite]</I> 275<DD class="command_desc">Specifies the access type for photo data in the <CODE>photo</CODE> region.<BR>Specify this only when using the TCL library to access the <CODE>photo</CODE> region.<BR>Specify <CODE>Read</CODE> for applications that only read photo data, and specify <CODE>ReadWrite</CODE> for applications that read and write photo data. 276 277</DL> 278</BLOCKQUOTE> 279<H4>AppendProperty Section (Additional Incidental Information Definition Section) <IMG src="../image/TWL.gif" align="middle"></H4> 280<P>Items in this section must be specified only when creating a NAND application.</P> 281<P>The "◎" symbol indicates settings that must be specified when creating the master ROM for a NAND application.</P> 282<BLOCKQUOTE> 283<DL class="command_list"> 284<DT class="command_item"><CODE>Media</CODE> <I>[GameCard|NAND]</I> ◎ 285<DD class="command_desc">Whether the software is a card application or a NAND application. For card applications, the entire <CODE>AppendProperty</CODE> section can be omitted. 286<DT class="command_item"><CODE>InitialCode</CODE> <I>[Game Code]</I> 287<DD class="command_desc">Game code as a 4-character ASCII string. If this is not specified, it will be set based on the ROM header. 288<DT class="command_item"><CODE>PublicSaveDataSize</CODE> <I>[Size of public save data]</I> 289<DD class="command_desc">Size of the public save data. Use <CODE>K</CODE> (indicating "kilobytes") for the units. (For example: <CODE>2048K</CODE>.) If this parameter is not specified, it is interpreted as <CODE>0K</CODE>. For details on the values that can be specified, see the <A href="SaveDataSize.html">Save Data Size List</A>. 290<DT class="command_item"><CODE>PrivateSaveDataSize</CODE> <I>[Size of private save data]</I> 291<DD class="command_desc">Size of the private save data. Use <CODE>K</CODE> (<I>kilobytes</I>) for the units. (For example: <CODE>2048K</CODE>.) If this parameter is not specified, it is interpreted as <CODE>0K</CODE>. For details on the values that can be specified, see the <A href="SaveDataSize.html">Save Data Size List</A>. 292<DT class="command_item"><CODE>SubBannerFile</CODE> <I>[TRUE|FALSE]</I> 293<DD class="command_desc">Whether to use sub-banners. 294 295</DL> 296</BLOCKQUOTE> 297<H4>Rating Section (Rating Information Definition Section)<IMG src="../image/TWL.gif" align="middle"></H4> 298<P>This section is used to set ratings obtained from rating organizations.</P> 299<P>Ratings from the following rating organizations can be set separately. However, you can only set ratings from the rating organizations included in the software region (specified in <CODE>CardRegion</CODE> in the <CODE>Property</CODE> section).</P> 300<P>There is no rating organization in China, so if <CODE>CardRegion</CODE> is set to <CODE>China</CODE>, you cannot specify any ratings from any rating organization. For software for China, the ratings of all rating organizations are automatically set to <CODE>0</CODE> as a special workaround, regardless of the existence of the Rating section. (SDK version 5.3 and later.)</P> 301 302<BLOCKQUOTE> 303</P> 304<TABLE class="blockquoted_table"> 305<TBODY> 306<TR> 307<TH>Setting</TH><TH>Corresponding Rating Organization</TH><TH>Applicable Regions</TH><TH>Correspondence Between Settable Values and Ratings</TH> 308</TR> 309<TR> 310<TD><CODE>CERO</CODE></TD><TD>CERO</TD><TD>Japan (<CODE>Japan</CODE>)</TD> 311 <TD> 312 <DIV> 313<CODE>0</CODE>: A (all ages)<BR> <CODE>12</CODE>: B (12 years or older)<BR> <CODE>15</CODE>: C (15 years or older)<BR> <CODE>17</CODE>: D (17 years or older)<BR> <CODE>18</CODE>: Z (18 years or older)<BR> <CODE>PENDING</CODE>: Under review<BR> 314 </DIV> 315 </TD> 316</TR> 317<TR> 318<TD><CODE>ESRB</CODE></TD><TD>ESRB</TD><TD>North America (<CODE>America</CODE>)</TD> 319 <TD> 320 <DIV> 321<CODE> 3</CODE>: EARLY CHILDHOOD (EC, all ages)<BR> <CODE> 6</CODE>: EVERYONE (E, 6 years or older)<BR> <CODE>10</CODE>: EVERYONE10+ (E10+, 10 years or older)<BR> <CODE>13</CODE>: TEEN (T, 13 years or older)<BR> <CODE>17</CODE>: MATURE (M, 17 years or older)<BR> <CODE>PENDING</CODE>: Under review<BR> 322 </DIV> 323 </TD> 324</TR> 325<TR> 326<TD><CODE>USK</CODE></TD><TD>USK</TD> 327<TD>Europe (<CODE>Europe</CODE>)<BR> Europe and Australia (<CODE>EuropeAndAustralia</CODE>)</TD> 328 <TD> 329 <DIV> 330<CODE> 0</CODE>: No age limit<BR> <CODE> 6</CODE>: 6 years or older<BR> <CODE>12</CODE>: 12 years or older<BR> <CODE>16</CODE>: 16 years or older<BR> <CODE>18</CODE>: Unsuitable for minors<BR> <CODE>PENDING</CODE>: Under review<BR> 331 </DIV> 332 </TD> 333</TR> 334<TR> 335<TD><CODE>PEGI_GEN</CODE></TD><TD>PEGI (general)</TD> 336<TD>Europe (<CODE>Europe</CODE>)<BR> Europe and Australia (<CODE>EuropeAndAustralia</CODE>)</TD> 337 <TD> 338 <DIV> 339<CODE> 3</CODE>: 3 years or older<BR> <CODE> 7</CODE>: 7 years or older<BR> <CODE>12</CODE>: 12 years or older<BR> <CODE>16</CODE>: 16 years or older<BR> <CODE>18</CODE>: 18 years or older<BR> <CODE>PENDING</CODE>: Under review<BR> 340 </DIV> 341 </TD> 342</TR> 343<TR> 344<TD><CODE>PEGI_PRT</CODE></TD><TD>PEGI (Portugal)</TD> 345<TD>Europe (<CODE>Europe</CODE>)<BR> Europe and Australia (<CODE>EuropeAndAustralia</CODE>)</TD> 346 <TD> 347 <DIV> 348<CODE> 4</CODE>: 4 years or older<BR> <CODE> 6</CODE>: 6 years or older<BR> <CODE>12</CODE>: 12 years or older<BR> <CODE>16</CODE>: 16 years or older<BR> <CODE>18</CODE>: 18 years or older<BR> <CODE>PENDING</CODE>: Under review<BR> 349 </DIV> 350 </TD> 351</TR> 352<TR> 353<TD><CODE>PEGI_BBFC</CODE></TD><TD>PEGI (General) and BBFC</TD> 354<TD>Europe (<CODE>Europe</CODE>)<BR> Europe and Australia (<CODE>EuropeAndAustralia</CODE>)</TD> 355 <TD> 356 <DIV> 357<CODE> 3</CODE>: 3 years or older<BR> <CODE> 4</CODE> :U, Uc (recommended for 4 years or older)<BR> <CODE> 7</CODE>: 7 years or older<BR> <CODE> 8</CODE>: PG (recommended for 8 years or older)<BR> <CODE>12</CODE>: 12 years or older<BR> <CODE>15</CODE>: 16 years or older<BR> <CODE>16</CODE>: 16 years or older<BR> <CODE>18</CODE>: 18 years or older<BR> <CODE>PENDING</CODE>: Under review<BR> 358 </DIV> 359 </TD> 360</TR> 361<TR> 362<TD><CODE>AGCB</CODE></TD><TD>AGCB</TD> 363<TD>Australia (<CODE>Australia</CODE>)<BR> Europe and Australia (<CODE>EuropeAndAustralia</CODE>)</TD> 364 <TD> 365 <DIV> 366<CODE> 0</CODE>: G (General, no age specified)<BR> <CODE> 7</CODE>: PG (Parental guidance recommended, no age specified)<BR> <CODE>14</CODE>:M (Recommended for adults, no age specified)<BR> <CODE>15</CODE>: MA15+ (Unsuitable for 15 years and younger, consent or a parent or guardian required for 15 years or younger)<BR> <CODE>PENDING</CODE>: Under review<BR> 367 </DIV> 368 </TD> 369</TR> 370<TR> 371<TD><CODE>GRB</CODE></TD><TD>GRB</TD> 372<TD>Korea (<CODE>Korea</CODE>)</TD> 373 <TD> 374 <DIV> 375<CODE>0</CODE>: All ages<BR> <CODE>12</CODE>: 12 years or older<BR> <CODE>15</CODE>: 15 years or older<BR> <CODE>18</CODE>: Not for minors<BR> <CODE>PENDING</CODE>: Under review<BR> 376 </DIV> 377 </TD> 378</TR> 379</TBODY> 380</TABLE> 381<P>Specify the following item only in exceptional cases when it has been determined that no rating is required.</P> 382<DL class="command_list"> 383<DT class="command_item"><CODE>Unnecessary</CODE> <I>[TRUE|FALSE]</I> 384<DD class="command_desc">Specifies that no rating is necessary for the application. If <CODE>TRUE</CODE> is specified, no ratings can be set from any rating organization.<BR>The default is <CODE>FALSE</CODE>. 385</DL> 386</BLOCKQUOTE> 387<H4>RomSpec Section (ROM Image Definitions Section)</H4> 388<P><FONT color="#ff0000">This section must come after all other sections in the file.</FONT></P> 389<P><B>RomSpec Section (Items Common to NITRO/TWL)</B> <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></P> 390<BLOCKQUOTE> 391<DL class="command_list"> 392<DT class="command_item"><code>Offset</code> <I>[Offset value]</I> 393<DD>Offset value for the location of files (or data) in the ROM image.<BR>To prevent the overlap of ROM image regions, the offset value must be larger than the final position of all files (or data) at that time. If it is not, an error occurs. 394<DT class="command_item"><code>OffsetMin</code> <I>[Offset value]</I> 395<DD>The same as <code>Offset</code>, except that no error occurs if the offset value is not larger than the final position of files. (Instead, the setting is ignored.) 396<DT class="command_item"><CODE>Segment All</CODE> 397<DD>Establishes <FONT color="#ff0000">all</FONT> data for file system management. This management data must precede other files and be placed at the start of ROM. 398<DT class="command_item"><CODE>Padding</CODE> <I>[Character code from 0 to 255]</I> 399<DD class="command_desc">Value to assign for padding when aligning the ROM image. A value from 0 through 255 can be specified. <FONT color="#ff0000">When the ROM format number is set to <CODE>1</CODE>, the default padding value is 0. When the format number is set to <CODE>2</CODE> or greater, the default padding value is 255.</FONT> 400<DT class="command_item"><CODE>Align</CODE> <I>[Alignment value]</I> 401<DD class="command_desc">Aligns the starting position in the ROM image of the next stored file or data to the specified memory boundary. Empty space is padded with the value specified by <code>Padding</code>. The alignment value must be a power of 2.<BR><FONT color="#ff0000"><FONT color="#ff0000">The <CODE>Align</CODE> statement is for temporarily controlling the memory boundary of the file. Its effective range covers only the file located immediately after its use.</FONT>To specify a permanent memory boundary, use the <code>AlignAll</code> statement.</FONT> 402<DT class="command_item"><CODE>AlignAll</CODE> <I>[Alignment value]</I> 403<DD class="command_desc"> Aligns the starting position in the ROM image of all subsequently stored files or data to the specified memory boundary. Empty space is padded with the value specified by <code>Padding</code>. If <code>Align</code> and <code>AlignAll</code> are both enabled, the value specified by <CODE>Align</CODE> is used. The default value of <code>AlignAll</code> is 512.<BR><FONT color="#ff0000">If the file alignment boundary is set to a value less than 512, you must note that access to a NITRO CARD (the media for NITRO software) is limited to 512-byte block units.</FONT> 404<DT class="command_item"><CODE>HostRoot</CODE> <I>[PC-side root directory name]</I> 405<DD class="command_desc">Standard directory on the computer for the files stored in the ROM image. <code>HostRoot</code> can be omitted, in which case the current directory (<code>"."</code>) is used as the default value. 406<DT class="command_item"><CODE>Root</CODE> <I>[NITRO -side root directory name]</I> 407<DD class="command_desc">Standard directory on NITRO for the files stored in the ROM image. The directory indicated by <code>HostRoot</code> on the computer is mapped to the NITRO directory indicated by <code>Root</code>. <code>Root</code> can be omitted, in which case the root directory (<code>"/"</code>) is used as the default value. 408<DT class="command_item"><CODE>File</CODE> <I>[Filename ...]</I> 409<DD class="command_desc">Files to store in the ROM image. If the specified filename is a directory, all files in all subdirectories are stored in the ROM image. However, any files or subdirectories that match the pattern specified by <code>Reject</code> are excluded. <CODE>*</CODE> and <CODE>?</CODE> can be used as wildcards when specifying a filename. <CODE>*</CODE> can replace any number of consecutive characters, and <CODE>?</CODE> only replaces a single character (1 byte). 410<DT class="command_item"><CODE>Reject</CODE> <I>[Filename pattern ...]</I> 411<DD class="command_desc">Filenames of files to not store in the ROM image. When directories or filenames containing wildcards are specified in the <code>File</code> statement, the <code>makerom</code> tool internally expands these specifications and creates a list of the files to store in ROM. Use the <code>Reject</code> definition to specify the files that you do not want included on this list.<BR><BR> By separating <CODE>Reject</CODE> statements with a blank space, multiple filename patterns can be specified. Wildcards (<CODE>*</CODE> and <CODE>?</CODE>) can be used. Specifications with the <CODE>Reject</CODE> statement are valid for the subsequent <CODE>File</CODE> statement up to the next <CODE>Reject</CODE> statement, or to the point where the <CODE>RomSpec</CODE> section ends. By default, the <CODE>Reject</CODE> statement specifies to reject the filename patterns <CODE>CVS</CODE>, <CODE>vssver.scc</CODE>, and <CODE>.?*</CODE> (filenames that begin with periods). 412<DT class="command_item"><CODE>Fixed</CODE> <I>[Default | True | False ]</I> 413<DD>This statement is for correcting NLF file parameters. It controls the flag that determines whether subsequently placed data can be moved. There is normally no need for this. The default value is <code>Default</code> (auto-configuration according to the type of data being laid out). 414<DT class="command_item"><CODE>TagType</CODE> <I>[Default | Name | Id | None ]</I> 415<DD>This statement is for fixing NLF file parameters. It specifies the method for accessing data placed after this statement (automatically configured; by filename; by file ID; no access method). There is normally no need for this. The default value is <code>Default</code> (auto-configuration according to the type of data being laid out). 416</DL> 417</BLOCKQUOTE> 418<P><a name="ROMSPEC_TWL"><B>RomSpec Section (TWL-Exclusive Items)</B></a> <IMG src="../image/TWL.gif" align="middle"></P> 419<BLOCKQUOTE> 420<DL class="command_list"> 421<DT class="command_item"><CODE>DllFile</CODE> <I>[Name of dynamic module used by the application] [Name of dynamic module that contains debug information] [ARM9/ARM7]</I> 422<DD class="command_desc">Specifies dynamic module files with debug information, used as the basis for the dynamic module files stored in the ROM image. You must designate whether the specified dynamic module is for the ARM9 or the ARM7. 423<DT class="command_item"><CODE>Put</CODE> <I>[TwlRom|NitroRom]</I> 424<DD class="command_desc">Toggles whether the files specified on subsequent lines will be placed into a TWL-exclusive or a NITRO-compatible region within the ROM. The default is <CODE>NitroRom</CODE>.<br />Files located in the <CODE>TwlRom</CODE> region are <a href="../fs/overview/about_Archive.html#ROM_LTDFILE">TWL-exclusive files</a> and cannot be read from ROM when running in a NITRO mode environment.</DL> 425</BLOCKQUOTE> 426<H3>Variable References and Modifier Options</H3> 427<P> When you write the ROM Spec file, you can reference the value of a variable that is defined outside the ROM Spec file by coding the variable in the following format: <code> $(<I>[variable name]</I>)</code>. You can set variable values with the command-line options <CODE>-D</CODE><I>[variable name]</I><CODE>=</CODE><I>[value]</I> or <CODE>-M</CODE><em>[variable list filename]</em>, or by using environment variables. If the same variable is defined with a command-line option and an environment variable, the command-line option takes priority. If the same variable is defined twice by command-line options, the first defined value takes priority.</P> 428<P>The following is example code for referencing a variable.</P> 429<BLOCKQUOTE> 430<PRE class="sample_source"><CODE>RomSpec 431{ 432 Offset 0x00000000 433 Segment All 434 File $(FILENAME) 435}</CODE></PRE> 436</BLOCKQUOTE> 437<P> If the variable value is in the form of a file path, you can reference various parts of that path by attaching a modifier option immediately after the variable name. The following values can be referenced with the modifier options <CODE>:h</CODE>, <CODE>:t</CODE>, <CODE>:r</CODE>, and <CODE>:e</CODE>.</P> 438<BLOCKQUOTE>For <CODE>$(FILE)=C:/home/Twl/readme.txt</CODE>: 439<TABLE class="blockquoted_table"> 440 <TBODY> 441 <TR> 442<TD><CODE>:h</CODE></TD> 443<TD>The portion of the path up to the final path delimiter.</TD> 444<TD><CODE>$(FILE:h)=C:/home/Twl/</CODE></TD> 445 </TR> 446 <TR> 447<TD><CODE>:t</CODE></TD> 448<TD>The portion of the path after the final path delimiter.</TD> 449<TD><CODE>$(FILE:t)=readme.txt</CODE></TD> 450 </TR> 451 <TR> 452<TD><CODE>:r</CODE></TD> 453<TD>The path, excluding the file extension.</TD> 454<TD><CODE>$(FILE:r)=C:/home/Twl/readme</CODE></TD> 455 </TR> 456 <TR> 457<TD><CODE>:e</CODE></TD> 458<TD>The file extension.</TD> 459<TD><CODE>$(FILE:e)=txt</CODE></TD> 460 </TR> 461 </TBODY> 462</TABLE> 463</BLOCKQUOTE> 464<P><BR> 465</P> 466<H3>Other Formatting</H3> 467<P> Keywords such as <code>RomSpec</code> used in section definitions can also be written in uppercase (<code>ROMSPEC</code>) or lowercase (<code>romspec</code>). Anything that follows a pound sign (<CODE>#</CODE>) is treated as a comment.</P> 468<P> To specify multiple items in <code>File</code> and <code>Reject</code> statements, separate them with blank spaces. Use double quotes (<code>" "</code>) to specify filenames that include blank spaces.</P> 469<BLOCKQUOTE> 470<PRE class="sample_source"><CODE># 471# Lines that begin with <CODE>#</CODE> are comments<BR> 472# 473Arm9 474{ 475 Static "c:/Program Files/myApps/lib/main.sbin" 476 OverlayDefs "c:/Program Files/myApps/lib/overlaydefs.sbin" 477} 478 479Property 480{ 481 RomSpeedType 1TROM 482 BannerFile ./etc/default.bnr 483} 484 485ROMSPEC # Uppercase is also OK 486{ 487 Segment ALL 488 File boo.dat foo.dat woo.dat 489}</CODE></PRE> 490</BLOCKQUOTE> 491<H3><A name="ROMFORMAT_VER">ROM Format Versions</A></H3> 492<P> Parts of the ROM format have been changed to support new specifications for ROM sizes of 1 gigabit or greater. For ROM images of this size, a fixed-size region at the top is now reserved by the system. In the <CODE>makerom</CODE> tool of SDK version 3.2 and later, this new ROM format is the default configuration. If you want to output a ROM image in the older format of SDK version 3.1 and earlier, you must specify the <CODE>-V1</CODE> option.</P> 493 494<P> The changes between the new and old formats are shown below:</P> 495<DIV align="left"> 496<BLOCKQUOTE> 497<TABLE class="blockquoted_table"> 498 <TBODY> 499 <TR> 500 <TH></TH> 501<TH>New ROM Format</TH> 502<TH>Old ROM Format</TH> 503 </TR> 504 <TR> 505<TD>Version Number</TD> 506 <TD><CODE>2</CODE></TD> 507 <TD><CODE>1</CODE></TD> 508 </TR> 509 <TR> 510<TD>Default <CODE>Padding</CODE> value</TD> 511 <TD><CODE>255</CODE></TD> 512 <TD><CODE>0</CODE></TD> 513 </TR> 514 <TR> 515<TD>Usable size on a 1-gigabit ROM</TD> 516<TD><CODE>125.5 MB = 1004 megabits</CODE></TD> 517<TD><CODE>128.0 MB = 1024 megabits</CODE></TD> 518 </TR> 519 <TR> 520<TD>Usable size on a 2-gigabit ROM</TD> 521<TD><CODE>251.0 MB = 2008 megabits</CODE></TD> 522<TD><CODE>256.0 MB = 2048 megabits</CODE></TD> 523 </TR> 524 <TR> 525<TD>Usable size on a 4-gigabit ROM</TD> 526<TD><CODE>501.625 MB = 4013 megabits</CODE></TD> 527<TD><CODE>512.0 MB = 4096 megabits</CODE></TD> 528 </TR> 529 </TBODY> 530</TABLE> 531</BLOCKQUOTE> 532</DIV> 533<P> The system-reserved region in the new ROM format is padded with a value of <CODE>255</CODE>. The default <CODE>Padding</CODE> value has also been changed from 0 to 255, regardless of the size of the ROM image. 534</P> 535<H3>Creating ROMs That Run on Production Hardware</H3> 536<P> 537ROM images that are created using <CODE>makerom.TWL</CODE> will only run on TWL development hardware. To create ROMs that run on TWL production hardware, Nintendo must handle the mastering. Developers do not need to confirm that the ROMs run on production hardware. ROM images created using <CODE>makerom.TWL</CODE> should be submitted for master ROM submission unchanged. For more details, see the <I>Master ROM Submission Guidelines</I>. 538</P> 539<P> 540Likewise, only NITRO ROMs that have been mastered will run on TWL production hardware. NITRO ROM images created using <CODE>makerom</CODE> will not run. 541</P> 542 543<H3>Other Notes</H3> 544<H4>Data in the Unused Region at the End of Master ROMs</H4> 545<P> 546The unused region at the end of master ROMs is automatically filled with <CODE>0xFF</CODE> by the <CODE>makerom</CODE> tool in TWL-SDK. 547</P> 548<H4>Data in Usage-Forbidden Regions of Master ROMs</H4> 549<P>For ROMs whose capacity is 1 gigabit or greater, there is a "usage-forbidden" region at the end of the ROM memory map where ROM code cannot be stored. This usage-forbidden region is automatically filled with <CODE>0xFF</CODE> by the <CODE>makerom</CODE> tool in TWL-SDK. For ROMs whose capacity is 1 gigabit or greater, the specification states that reading from the usage-forbidden region always outputs <CODE>0xFF</CODE>. For more about the sizes of usage-forbidden regions, see the <I>Game Card Manual</I>.</P> 550<H4>Use of Data Read from Access-Forbidden Regions</H4> 551<P>Data output by reading from access-forbidden regions of Game Cards is undefined. (As long as the FS functions of TWL-SDK are used to access files located on a Game Card, access-forbidden regions are never read from.) For more about access-forbidden regions of memory, see the <I>Game Card Manual</I>.</P> 552<H2>Location</H2> 553<P> 554<CODE>$TwlSDK/tools/bin/makerom.exe</CODE><BR> <CODE>$TwlSDK/tools/bin/makerom.TWL.exe</CODE><BR> <CODE>$TwlSDK/tools/bin/rom_header.template.sbin</CODE> <CODE>$TwlSDK/tools/bin/rom_header.LTD.sbin</CODE> 555</P> 556<H2>See Also</H2> 557<P><A href="makelcf.html"><CODE>makelcf</CODE></A><BR> <A href="makebanner.html"><CODE>makebanner</CODE></A></P> 558<H2>Revision History</H2> 559<P> 5602009/11/11 Added conditions under which <CODE>OverlayTable</CODE> cannot be omitted.<br>2009/09/02 Added a description of the <CODE>-m</CODE> option.<br>2009/07/27 Added a description of supporting Chinese applications to the description of the <CODE>Rating</CODE> section.<br>2009/07/14 Added an explanation of <CODE>CardRegion</CODE> and explanation of the Korean rating organization.<BR>2009/06/08 Added link to the explanation of TWL-exclusive files.<br />2009/04/13 Added a link to the FS Library Overview from the description of <CODE>DigestParam</CODE>. <BR>2009/04/07 Added a description of the <CODE>PhotoAccess</CODE> property. <BR>2009/03/24 Revised explanations related to the priority order of <CODE>Align</CODE> and <CODE>AlignAll</CODE>. <BR>2009/03/10 Added a description of <CODE>CardRegion</CODE> and made revisions following a change to the name of the Australian rating organization. <BR>2009/02/06 Added a description of <CODE>CardRegion</CODE> and a new description of <CODE>Rating</CODE>. <BR>2009/02/03 Added a description of <CODE>WiFiConnectionIcon</CODE> and <CODE>AgreeEULA</CODE>. <BR>2009/01/08 Added a description of TWL-specific files. <BR>2008/12/16 Revised the description of the default value for <CODE>TARGET_PLATFORM</CODE>. <BR>2008/12/08 Removed the description of <CODE>JpegSign</CODE>. <BR>2008/10/31 Added a description of <CODE>RomSize</CODE>. <BR>2008/10/29 Revised the description of <CODE>WramMapping</CODE> and <CODE>CodecMode</CODE>. <BR>2008/10/22 Added to the description of <CODE>JpegSign</CODE>. <BR>2008/10/22 Added a description of <CODE>Property</CODE>. <BR>2008/09/16 Added descriptions related to running ROMs on development and production hardware. <BR>2008/09/12 Added a significant number of items and a heading for <CODE>makerom.TWL.exe</CODE>. <BR>2008/06/04 Changed the default value for <CODE>FixSound</CODE> and <CODE>FixSoundDMA</CODE> to <CODE>TRUE</CODE>. <BR>2008/03/28 Changed descriptions related to SCFG for the ARM7. <BR>2007/11/30 Added settings related to SCFG for the ARM7. <BR>2007/09/27 Added <CODE>DllFile</CODE>. <BR>2007/06/06 Added a description of the <CODE>-M</CODE> option. <BR>2007/03/29 Revised text in response to the fact that temporary specifications for the new <CODE>2Gbit</CODE> ROM format have been adopted as the final specifications. <BR>2006/10/06 Added a description of the scope of <CODE>Reject</CODE> statements. <BR>2006/08/18 Added a description of <CODE>ForKorea</CODE>. <BR>2005/05/09 Added support for ROM format versions. <BR>2005/04/26 Changed the term "1-time PROM" to "one-time PROM." <BR>2005/04/11 Added a description of <CODE>ForChina</CODE>. <BR>2005/04/05 Added a description of <CODE>"UNDEFINED"</CODE> to <CODE>RomSpeedType</CODE>. <BR>2005/03/28 Added a description of <CODE>RomSpeedType</CODE> and the <CODE>-W</CODE> option. <BR>2004/09/22 Explained the order in which section headings appear. <BR>2004/07/23 Added descriptions for <CODE>Align</CODE> and <CODE>AlignAll</CODE>. <BR>2004/06/08 Initial version.</P> 561<hr><p>CONFIDENTIAL</p></body> 562</HTML> 563