diff --git a/man/rgblink.1 b/man/rgblink.1 index e271d3c4..9d0d16c1 100644 --- a/man/rgblink.1 +++ b/man/rgblink.1 @@ -53,7 +53,7 @@ but also prohibits the use of banked VRAM. .Nm accepts the usual short and long options, such as .Fl V -and +and .Fl -version . Options later in the command line override those set earlier, except for when duplicate options are considered an error. Options can be abbreviated as long as the abbreviation is unambiguous: @@ -285,7 +285,7 @@ Certain regions allow omitting the size, in which case it defaults to its maximu .Bl -column "Region name" "Max value" "Size optional" Region name Ta Max size Ta Size optional .Cm romx Ta 65535 Ta \&No -.Cm sram Ta 255 Ta \&No +.Cm sram Ta 256 Ta \&No .Cm wramx Ta 7 Ta Yes .El .Pp diff --git a/src/link/main.cpp b/src/link/main.cpp index 42157b6c..0d20b6ff 100644 --- a/src/link/main.cpp +++ b/src/link/main.cpp @@ -101,7 +101,7 @@ static void parseScrambleSpec(char *spec) { // clang-format off: vertically align nested initializers static UpperMap> scrambleSpecs{ {"ROMX", std::pair{&options.scrambleROMX, 65535}}, - {"SRAM", std::pair{&options.scrambleSRAM, 255 }}, + {"SRAM", std::pair{&options.scrambleSRAM, 256 }}, {"WRAMX", std::pair{&options.scrambleWRAMX, 7 }}, }; // clang-format on