mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-18 19:57:06 +00:00
Allow scrambling SRAM banks up to the full 8-bit range
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -101,7 +101,7 @@ static void parseScrambleSpec(char *spec) {
|
||||
// clang-format off: vertically align nested initializers
|
||||
static UpperMap<std::pair<uint16_t *, uint16_t>> 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
|
||||
|
||||
Reference in New Issue
Block a user