mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-19 12:17:06 +00:00
Allow scrambling SRAM banks up to the full 8-bit range
This commit is contained in:
+1
-1
@@ -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"
|
.Bl -column "Region name" "Max value" "Size optional"
|
||||||
Region name Ta Max size Ta Size optional
|
Region name Ta Max size Ta Size optional
|
||||||
.Cm romx Ta 65535 Ta \&No
|
.Cm romx Ta 65535 Ta \&No
|
||||||
.Cm sram Ta 255 Ta \&No
|
.Cm sram Ta 256 Ta \&No
|
||||||
.Cm wramx Ta 7 Ta Yes
|
.Cm wramx Ta 7 Ta Yes
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
|
|||||||
+1
-1
@@ -101,7 +101,7 @@ static void parseScrambleSpec(char *spec) {
|
|||||||
// clang-format off: vertically align nested initializers
|
// clang-format off: vertically align nested initializers
|
||||||
static UpperMap<std::pair<uint16_t *, uint16_t>> scrambleSpecs{
|
static UpperMap<std::pair<uint16_t *, uint16_t>> scrambleSpecs{
|
||||||
{"ROMX", std::pair{&options.scrambleROMX, 65535}},
|
{"ROMX", std::pair{&options.scrambleROMX, 65535}},
|
||||||
{"SRAM", std::pair{&options.scrambleSRAM, 255 }},
|
{"SRAM", std::pair{&options.scrambleSRAM, 256 }},
|
||||||
{"WRAMX", std::pair{&options.scrambleWRAMX, 7 }},
|
{"WRAMX", std::pair{&options.scrambleWRAMX, 7 }},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|||||||
Reference in New Issue
Block a user