Update documentation for new -x option

This commit is contained in:
ISSOtm
2020-04-27 11:04:29 +02:00
parent 8b1351fc3e
commit 8958e352df
2 changed files with 10 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ static struct option const longopts[] = {
static void printUsage(void) static void printUsage(void)
{ {
fputs( fputs(
"Usage: rgblink [-dtVvw] [-l script] [-m map_file] [-n sym_file]\n" "Usage: rgblink [-dtVvwx] [-l script] [-m map_file] [-n sym_file]\n"
" [-O overlay_file] [-o out_file] [-p pad_value] [-s symbol]\n" " [-O overlay_file] [-o out_file] [-p pad_value] [-s symbol]\n"
" <file> ...\n" " <file> ...\n"
"Useful options:\n" "Useful options:\n"

View File

@@ -13,7 +13,7 @@
.Nd Game Boy linker .Nd Game Boy linker
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl dtVvw .Op Fl dtVvwx
.Op Fl l Ar linker_script .Op Fl l Ar linker_script
.Op Fl m Ar map_file .Op Fl m Ar map_file
.Op Fl n Ar sym_file .Op Fl n Ar sym_file
@@ -102,6 +102,14 @@ Print the version of the program and exit.
Verbose: enable printing more information to standard error. Verbose: enable printing more information to standard error.
.It Fl w , Fl Fl wramx .It Fl w , Fl Fl wramx
Expand the WRAM0 section size from 4 KiB to the full 8 KiB assigned to WRAM and prohibit the use of WRAMX sections. Expand the WRAM0 section size from 4 KiB to the full 8 KiB assigned to WRAM and prohibit the use of WRAMX sections.
.It Fl x , Fl Fl nopad
Disables padding the end of the final file.
This option automatically enables
.Fl t .
You can use this when not not making a ROM.
When making a ROM, be careful that not using this is not a replacement for
.Xr rgbfix 1 Ap s Fl p
option!
.El .El
.Sh EXAMPLES .Sh EXAMPLES
All you need for a basic ROM is an object file, which can be made into a ROM image like so: All you need for a basic ROM is an object file, which can be made into a ROM image like so: