feat: Linkerscript now tracks RAM/ROM usage

Based on https://github.com/pret/pokeemerald/pull/1952
This commit is contained in:
Ariel A
2024-05-13 21:55:08 -04:00
parent 0c17a3b041
commit bc76541189
4 changed files with 47 additions and 42 deletions
+3 -1
View File
@@ -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)