| RGBLINK(1) | General Commands Manual | RGBLINK(1) | 
rgblink —
Game Boy linker
rgblink | 
    [-dtVvw] [-l
      linker_script] [-m
      map_file] [-n
      sym_file] [-O
      overlay_file] [-o
      out_file] [-p
      pad_value] [-s
      symbol] file ... | 
  
rgblink program links RGB object files, typically
  created by rgbasm(1), into a single Game Boy ROM file. The
  format is documented in rgbds(5).
ROM0 sections are placed in the first 16 KiB of the output ROM,
    and ROMX sections are placed in any 16 KiB “bank” except the
    first. If your ROM will only be 32 KiB, you can use the
    -t option to change this.
Similarly, WRAM0 sections are placed in the first 4 KiB of WRAM
    (“bank 0”), and WRAMX sections are placed in any bank of the
    last 4 KiB. If your ROM doesn't use banked WRAM, you can use the
    -w option to change this.
Also, if your ROM is designed for a monochrome Game Boy, you can
    make sure that you don't use any incompatible section by using the
    -d option, which implies -w
    but also prohibits the use of banked VRAM.
Note that options can be abbreviated as long as the abbreviation
    is unambiguous: --verb is
    --verbose, but
    --ver is invalid because it
    could also be --version. The
    arguments are as follows:
-d,
    --dmg-w.-l
    linker_script,
    --linkerscript
    linker_script-m
    map_file,
    --map
    map_file-n
    sym_file,
    --sym
    sym_file-O
    overlay_file,
    --overlay
    overlay_file-o
    out_file,
    --output
    out_file-p
    pad_value,
    --pad
    pad_value-O is specified. The default is 0.-s
    symbol,
    --smart
    symbol-t,
    --tiny-V,
    --version-v,
    --verbose-w,
    --wramxThe resulting bar.gb will not have correct checksums (unless you put them in the assembly source). You should use rgbfix(1) to fix these so that the program will actually run in a Game Boy:
$ rgbfix -v bar.gbHere is a more complete example:
$ rgblink -o bin/game.gb -n
  bin/game.sym -p 0xFF obj/title.o obj/engine.orgblink 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
  https://github.com/rednex/rgbds.
| November 26, 2019 | General |