Allow empty one-past-the-end sections (#2221)

This commit is contained in:
Rangi authored and GitHub committed 2026-10-21 15:58:30 -04:00
1 parent 72c9171216
commit 85f96d671f
12 files changed
+26 -16

No files matched your search

+3
View File
@@ -107,6 +107,9 @@ struct SectionTypeInfo {
// Returns a memory region's end address (last byte), e.g. 0x7FFF
uint16_t endAddr() const { return startAddr + size - 1; }
// Returns a memory region's one-past-the-end address, e.g. 0x8000
uint16_t onePastEndAddr() const { return startAddr + size; }
// Returns a memory region's number of banks, or 1 for regions without banking
uint32_t nbBanks() const { return lastBank - firstBank + 1; }