gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit e71fd5350ba35689f87bc7d0b62681438233f444 parent 5132411d7ed50462dd4d5bf343944c14ee336cdc Author: Toxa <untoxa@mail.ru> Date: Mon, 11 Sep 2023 17:09:57 +0300 BANKPACK: allow to set the minimum bank for automatic packing to 0 (required for the NES target) Diffstat:
| M | gbdk-support/bankpack/common.h | 3 | ++- |
| M | gbdk-support/bankpack/obj_data.c | 2 | +- |
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gbdk-support/bankpack/common.h b/gbdk-support/bankpack/common.h @@ -29,8 +29,9 @@ enum { #define BANK_NUM_UNASSIGNED 0xFFFFU #define BANK_NUM_AUTO 255 -#define BANK_NUM_ROM_MIN 1 +#define BANK_NUM_ROM_MIN 0 #define BANK_NUM_ROM_MAX 255 +#define BANK_NUM_ROM_DEFAULT 1 #define BANK_ROM_TOTAL 256 // Banks 0-255 #define BANK_ROM_CALC_MAX 512 // Banks 0-512 (>256 not supported for auto-banking right now) #define BANK_SIZE_ROM 0x4000U diff --git a/gbdk-support/bankpack/obj_data.c b/gbdk-support/bankpack/obj_data.c @@ -34,7 +34,7 @@ list_type arealist; list_type symbollist; list_type symbol_matchlist; -uint16_t bank_limit_rom_min = BANK_NUM_ROM_MIN; +uint16_t bank_limit_rom_min = BANK_NUM_ROM_DEFAULT; uint16_t bank_limit_rom_max = BANK_NUM_ROM_MAX;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.