feat: Linkerscript now tracks RAM/ROM usage
Based on https://github.com/pret/pokeemerald/pull/1952
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#define EWRAM_DATA __attribute__((section("__DATA,ewram_data")))
|
||||
#else
|
||||
#define IWRAM_DATA __attribute__((section("iwram_data")))
|
||||
#define EWRAM_DATA __attribute__((section("ewram_data")))
|
||||
#define EWRAM_DATA __attribute__((section(".sbss")))
|
||||
#endif
|
||||
|
||||
#if MODERN
|
||||
@@ -72,6 +72,8 @@
|
||||
#define TILE_SIZE_4BPP 32
|
||||
#define TILE_SIZE_8BPP 64
|
||||
|
||||
#define BG_TILE_ADDR_4BPP(n) (void *)(BG_VRAM + (TILE_SIZE_4BPP * (n)))
|
||||
|
||||
#define TILE_OFFSET_4BPP(n) ((n) * TILE_SIZE_4BPP)
|
||||
#define TILE_OFFSET_8BPP(n) ((n) * TILE_SIZE_8BPP)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user