Skip to content

Commit

Permalink
Max banks fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ClusterM committed Aug 6, 2023
1 parent 23f62d6 commit 82f59a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions source/defs.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define MAX_BANKS 4096

/* path separator */
#if defined(DJGPP) || defined(MSDOS) || defined(WIN32)
Expand All @@ -13,9 +14,9 @@
#define MACHINE_NES 1

/* reserved bank index */
#define RESERVED_BANK 0xF0
#define PROC_BANK 0xF1
#define GROUP_BANK 0xF2
#define RESERVED_BANK (MAX_BANKS - 0x0F)
#define PROC_BANK (MAX_BANKS - 0x0F + 1)
#define GROUP_BANK (MAX_BANKS - 0x0F + 2)

/* tile format for encoder */
#define CHUNKY_TILE 1
Expand Down
2 changes: 0 additions & 2 deletions source/externs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#define MAX_BANKS 4096

extern unsigned char rom[MAX_BANKS][8192];
extern unsigned char map[MAX_BANKS][8192];
extern char bank_name[MAX_BANKS][64];
Expand Down

0 comments on commit 82f59a3

Please sign in to comment.