Allow scrambling SRAM banks up to the full 8-bit range

This commit is contained in:
ISSOtm
2026-09-15 23:06:19 -04:00
parent 004749ea75
commit 6587941512
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
View File
@@ -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