mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix linkerscript linking errors
The problems were introduced by the following commits: -959bfe2a9d-975200834eSigned-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -65,8 +65,6 @@ static int32_t getrealbankfrominternalbank(int32_t n)
|
|||||||
return n - BANK_INDEX_SRAM;
|
return n - BANK_INDEX_SRAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
errx(1, "%s: Unknown bank %d", __func__, n);
|
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ void script_SetCurrentSectionType(const char *type, uint32_t bank)
|
|||||||
BANK_COUNT_WRAMX);
|
BANK_COUNT_WRAMX);
|
||||||
}
|
}
|
||||||
current_bank = BANK_INDEX_WRAMX + bank - 1;
|
current_bank = BANK_INDEX_WRAMX + bank - 1;
|
||||||
current_real_bank = bank - 1;
|
current_real_bank = bank;
|
||||||
return;
|
return;
|
||||||
} else if (strcmp(type, "SRAM") == 0) {
|
} else if (strcmp(type, "SRAM") == 0) {
|
||||||
if (bank >= BANK_COUNT_SRAM) {
|
if (bank >= BANK_COUNT_SRAM) {
|
||||||
|
|||||||
Reference in New Issue
Block a user