mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Regenerate wwwman
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<!-- This is an automatically generated file. Do not edit.
|
||||
This file is part of RGBDS.
|
||||
|
||||
Copyright (c) 2010-2018, Anthony J. Bentley and RGBDS contributors.
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<style>
|
||||
table.head, table.foot { width: 100%; }
|
||||
td.head-rtitle, td.foot-os { text-align: right; }
|
||||
td.head-vol { text-align: center; }
|
||||
div.Pp { margin: 1ex 0ex; }
|
||||
</style>
|
||||
<link rel="stylesheet" href="mandoc.css" type="text/css" media="all"/>
|
||||
<title>RGBLINK(1)</title>
|
||||
</head>
|
||||
@@ -20,137 +21,113 @@
|
||||
</tr>
|
||||
</table>
|
||||
<div class="manual-text">
|
||||
<h1 class="Sh" title="Sh" id="NAME"><a class="selflink" href="#NAME">NAME</a></h1>
|
||||
<b class="Nm" title="Nm">rgblink</b> — <span class="Nd" title="Nd">Game
|
||||
Boy linker</span>
|
||||
<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="selflink" href="#SYNOPSIS">SYNOPSIS</a></h1>
|
||||
<section class="Sh">
|
||||
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
|
||||
<code class="Nm">rgblink</code> —
|
||||
<div class="Nd">Game Boy linker</div>
|
||||
</section>
|
||||
<section class="Sh">
|
||||
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
|
||||
<table class="Nm">
|
||||
<tr>
|
||||
<td><b class="Nm" title="Nm">rgblink</b></td>
|
||||
<td>[<span class="Op"><b class="Fl" title="Fl">-dtVw</b></span>]
|
||||
[<span class="Op"><b class="Fl" title="Fl">-m</b>
|
||||
<var class="Ar" title="Ar">mapfile</var></span>]
|
||||
[<span class="Op"><b class="Fl" title="Fl">-n</b>
|
||||
<var class="Ar" title="Ar">symfile</var></span>]
|
||||
[<span class="Op"><b class="Fl" title="Fl">-O</b>
|
||||
<var class="Ar" title="Ar">overlayfile</var></span>]
|
||||
[<span class="Op"><b class="Fl" title="Fl">-o</b>
|
||||
<var class="Ar" title="Ar">outfile</var></span>]
|
||||
[<span class="Op"><b class="Fl" title="Fl">-p</b>
|
||||
<var class="Ar" title="Ar">pad_value</var></span>]
|
||||
[<span class="Op"><b class="Fl" title="Fl">-s</b>
|
||||
<var class="Ar" title="Ar">symbol</var></span>]
|
||||
[<span class="Op"><b class="Fl" title="Fl">-l</b>
|
||||
<var class="Ar" title="Ar">linkerscript</var></span>]
|
||||
<var class="Ar" title="Ar">file ...</var></td>
|
||||
<td><code class="Nm">rgblink</code></td>
|
||||
<td>[<code class="Fl">-dtVw</code>] [<code class="Fl">-m</code>
|
||||
<var class="Ar">mapfile</var>] [<code class="Fl">-n</code>
|
||||
<var class="Ar">symfile</var>] [<code class="Fl">-O</code>
|
||||
<var class="Ar">overlayfile</var>] [<code class="Fl">-o</code>
|
||||
<var class="Ar">outfile</var>] [<code class="Fl">-p</code>
|
||||
<var class="Ar">pad_value</var>] [<code class="Fl">-s</code>
|
||||
<var class="Ar">symbol</var>] [<code class="Fl">-l</code>
|
||||
<var class="Ar">linkerscript</var>] <var class="Ar">file ...</var></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="selflink" href="#DESCRIPTION">DESCRIPTION</a></h1>
|
||||
The <b class="Nm" title="Nm">rgblink</b> program links objects created by
|
||||
<a class="Xr" title="Xr">rgbasm(1)</a> into a single Game Boy ROM file.
|
||||
<div class="Pp"></div>
|
||||
By default, ROM0 sections created by the assembler are placed in the 16KiB bank
|
||||
0, and ROMX sections are placed in any bank except bank 0. If your ROM will
|
||||
only be 32KiB, you can use the <b class="Fl" title="Fl">-t</b> option to
|
||||
override this.
|
||||
<div class="Pp"></div>
|
||||
Similarly, WRAM0 sections are placed in the first 4KiB of WRAM bank 0 and WRAMX
|
||||
sections are placed in any bank except bank 0. If your ROM doesn't use banked
|
||||
WRAM you can use option <b class="Fl" title="Fl">-w</b> option to override
|
||||
this.
|
||||
<div class="Pp"></div>
|
||||
Also, if your ROM is designed for DMG, you can make sure that you don't use any
|
||||
prohibited section by using the option <b class="Fl" title="Fl">-d</b>, which
|
||||
implies <b class="Fl" title="Fl">-w</b> but also prohibits the use of VRAM
|
||||
bank 1.
|
||||
<div class="Pp"></div>
|
||||
The arguments are as follows:
|
||||
</section>
|
||||
<section class="Sh">
|
||||
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
|
||||
The <code class="Nm">rgblink</code> program links objects created by
|
||||
<a class="Xr">rgbasm(1)</a> into a single Game Boy ROM file.
|
||||
<p class="Pp">By default, ROM0 sections created by the assembler are placed in
|
||||
the 16KiB bank 0, and ROMX sections are placed in any bank except bank 0. If
|
||||
your ROM will only be 32KiB, you can use the <code class="Fl">-t</code>
|
||||
option to override this.</p>
|
||||
<p class="Pp">Similarly, WRAM0 sections are placed in the first 4KiB of WRAM
|
||||
bank 0 and WRAMX sections are placed in any bank except bank 0. If your ROM
|
||||
doesn't use banked WRAM you can use option <code class="Fl">-w</code> option
|
||||
to override this.</p>
|
||||
<p class="Pp">Also, if your ROM is designed for DMG, you can make sure that you
|
||||
don't use any prohibited section by using the option
|
||||
<code class="Fl">-d</code>, which implies <code class="Fl">-w</code> but
|
||||
also prohibits the use of VRAM bank 1.</p>
|
||||
<p class="Pp">The arguments are as follows:</p>
|
||||
<dl class="Bl-tag">
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#m"><b class="Fl" title="Fl" id="m">-m</b></a>
|
||||
<var class="Ar" title="Ar">mapfile</var></dt>
|
||||
<dd class="It-tag">Write a mapfile to the given filename.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#n"><b class="Fl" title="Fl" id="n">-n</b></a>
|
||||
<var class="Ar" title="Ar">symfile</var></dt>
|
||||
<dd class="It-tag">Write a symbol file to the given filename.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#O"><b class="Fl" title="Fl" id="O">-O</b></a>
|
||||
<var class="Ar" title="Ar">overlayfile</var></dt>
|
||||
<dd class="It-tag">The ROM image to overlay sections over. When an overlay ROM
|
||||
is provided, all sections must be fixed. This may be used to patch an
|
||||
existing binary.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#o"><b class="Fl" title="Fl" id="o">-o</b></a>
|
||||
<var class="Ar" title="Ar">outfile</var></dt>
|
||||
<dd class="It-tag">Write ROM image to the given filename.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#p"><b class="Fl" title="Fl" id="p">-p</b></a>
|
||||
<var class="Ar" title="Ar">pad_value</var></dt>
|
||||
<dd class="It-tag">When padding an image, pad with this value. The default is
|
||||
0x00.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#s"><b class="Fl" title="Fl" id="s">-s</b></a>
|
||||
<var class="Ar" title="Ar">symbol</var></dt>
|
||||
<dd class="It-tag">???</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#w"><b class="Fl" title="Fl" id="w">-w</b></a></dt>
|
||||
<dd class="It-tag">Expand the WRAM0 section size from 4KiB to the full 8KiB
|
||||
assigned to WRAM and prohibit the use of WRAMX sections.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#d"><b class="Fl" title="Fl" id="d">-d</b></a></dt>
|
||||
<dd class="It-tag">Enable DMG mode. Prohibit the use of sections that doesn't
|
||||
exist on a DMG, such as WRAMX and VRAM bank 1. This option automatically
|
||||
enables <b class="Fl" title="Fl">-w</b>.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#t"><b class="Fl" title="Fl" id="t">-t</b></a></dt>
|
||||
<dd class="It-tag">Expand the ROM0 section size from 16KiB to the full 32KiB
|
||||
assigned to ROM and prohibit the use of ROMX sections. Useful for ROMs
|
||||
that fit in 32 KiB.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#l"><b class="Fl" title="Fl" id="l">-l</b></a>
|
||||
<var class="Ar" title="Ar">linkerscript</var></dt>
|
||||
<dd class="It-tag">Specify a linkerscript file that tells the linker how
|
||||
sections must be placed in the ROM. This file has priority over the
|
||||
attributes assigned in the source code, but they have to be consistent.
|
||||
See <a class="Xr" title="Xr">rgblink(5)</a> for more information about its
|
||||
format.</dd>
|
||||
<dt class="It-tag"> </dt>
|
||||
<dd class="It-tag"> </dd>
|
||||
<dt class="It-tag"><a class="selflink" href="#V"><b class="Fl" title="Fl" id="V">-V</b></a></dt>
|
||||
<dd class="It-tag">Print the version of the program and exit.</dd>
|
||||
<dt><a class="permalink" href="#m"><code class="Fl" id="m">-m</code></a>
|
||||
<var class="Ar">mapfile</var></dt>
|
||||
<dd>Write a mapfile to the given filename.</dd>
|
||||
<dt><a class="permalink" href="#n"><code class="Fl" id="n">-n</code></a>
|
||||
<var class="Ar">symfile</var></dt>
|
||||
<dd>Write a symbol file to the given filename.</dd>
|
||||
<dt><a class="permalink" href="#O"><code class="Fl" id="O">-O</code></a>
|
||||
<var class="Ar">overlayfile</var></dt>
|
||||
<dd>The ROM image to overlay sections over. When an overlay ROM is provided,
|
||||
all sections must be fixed. This may be used to patch an existing
|
||||
binary.</dd>
|
||||
<dt><a class="permalink" href="#o"><code class="Fl" id="o">-o</code></a>
|
||||
<var class="Ar">outfile</var></dt>
|
||||
<dd>Write ROM image to the given filename.</dd>
|
||||
<dt><a class="permalink" href="#p"><code class="Fl" id="p">-p</code></a>
|
||||
<var class="Ar">pad_value</var></dt>
|
||||
<dd>When padding an image, pad with this value. The default is 0x00.</dd>
|
||||
<dt><a class="permalink" href="#s"><code class="Fl" id="s">-s</code></a>
|
||||
<var class="Ar">symbol</var></dt>
|
||||
<dd>???</dd>
|
||||
<dt><a class="permalink" href="#w"><code class="Fl" id="w">-w</code></a></dt>
|
||||
<dd>Expand the WRAM0 section size from 4KiB to the full 8KiB assigned to WRAM
|
||||
and prohibit the use of WRAMX sections.</dd>
|
||||
<dt><a class="permalink" href="#d"><code class="Fl" id="d">-d</code></a></dt>
|
||||
<dd>Enable DMG mode. Prohibit the use of sections that doesn't exist on a DMG,
|
||||
such as WRAMX and VRAM bank 1. This option automatically enables
|
||||
<code class="Fl">-w</code>.</dd>
|
||||
<dt><a class="permalink" href="#t"><code class="Fl" id="t">-t</code></a></dt>
|
||||
<dd>Expand the ROM0 section size from 16KiB to the full 32KiB assigned to ROM
|
||||
and prohibit the use of ROMX sections. Useful for ROMs that fit in 32
|
||||
KiB.</dd>
|
||||
<dt><a class="permalink" href="#l"><code class="Fl" id="l">-l</code></a>
|
||||
<var class="Ar">linkerscript</var></dt>
|
||||
<dd>Specify a linkerscript file that tells the linker how sections must be
|
||||
placed in the ROM. This file has priority over the attributes assigned in
|
||||
the source code, but they have to be consistent. See
|
||||
<a class="Xr">rgblink(5)</a> for more information about its format.</dd>
|
||||
<dt><a class="permalink" href="#V"><code class="Fl" id="V">-V</code></a></dt>
|
||||
<dd>Print the version of the program and exit.</dd>
|
||||
</dl>
|
||||
<h1 class="Sh" title="Sh" id="EXAMPLES"><a class="selflink" href="#EXAMPLES">EXAMPLES</a></h1>
|
||||
</section>
|
||||
<section class="Sh">
|
||||
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
|
||||
All you need for a basic ROM is an object file, which can be made into a ROM
|
||||
image like so:
|
||||
<div class="Pp"></div>
|
||||
<div class="D1">$ rgblink -o bar.gb foo.o</div>
|
||||
<div class="Pp"></div>
|
||||
The resulting bar.gb will not have correct checksums (unless you put them in the
|
||||
assembly source). You should use <a class="Xr" title="Xr">rgbfix(1)</a> to fix
|
||||
these so that the program will actually run in a Game Boy:
|
||||
<div class="Pp"></div>
|
||||
<div class="D1">$ rgbfix -v bar.gb</div>
|
||||
<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="selflink" href="#SEE_ALSO">SEE
|
||||
<p class="Pp"></p>
|
||||
<div class="Bd Bd-indent">$ rgblink -o bar.gb foo.o</div>
|
||||
<p class="Pp">The resulting bar.gb will not have correct checksums (unless you
|
||||
put them in the assembly source). You should use <a class="Xr">rgbfix(1)</a>
|
||||
to fix these so that the program will actually run in a Game Boy:</p>
|
||||
<p class="Pp"></p>
|
||||
<div class="Bd Bd-indent">$ rgbfix -v bar.gb</div>
|
||||
</section>
|
||||
<section class="Sh">
|
||||
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
|
||||
ALSO</a></h1>
|
||||
<a class="Xr" title="Xr">rgbasm(1)</a>, <a class="Xr" title="Xr">rgblink(5)</a>,
|
||||
<a class="Xr" title="Xr">rgbfix(1)</a>, <a class="Xr" title="Xr">rgbds(5)</a>,
|
||||
<a class="Xr" title="Xr">rgbds(7)</a>
|
||||
<h1 class="Sh" title="Sh" id="HISTORY"><a class="selflink" href="#HISTORY">HISTORY</a></h1>
|
||||
<b class="Nm" title="Nm">rgblink</b> was originally written by Carsten
|
||||
<a class="Xr">rgbasm(1)</a>, <a class="Xr">rgblink(5)</a>,
|
||||
<a class="Xr">rgbfix(1)</a>, <a class="Xr">rgbds(5)</a>,
|
||||
<a class="Xr">rgbds(7)</a>
|
||||
</section>
|
||||
<section class="Sh">
|
||||
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
|
||||
<code class="Nm">rgblink</code> was originally written by Carsten
|
||||
Sørensen as part of the ASMotor package, and was later packaged in
|
||||
RGBDS by Justin Lloyd. It is now maintained by a number of contributors at
|
||||
<a class="Lk" title="Lk" href="https://github.com/rednex/rgbds">https://github.com/rednex/rgbds</a>.</div>
|
||||
<a class="Lk" href="https://github.com/rednex/rgbds">https://github.com/rednex/rgbds</a>.
|
||||
</section>
|
||||
</div>
|
||||
<table class="foot">
|
||||
<tr>
|
||||
<td class="foot-date">January 26, 2018</td>
|
||||
|
||||
Reference in New Issue
Block a user