Centralize location of memory pools

This commit centralizes the location of memory pools and adds an
associated script (scripts/get_memory_map.sh) to read the memory map.
This commit is contained in:
Rickey Fehr
2025-10-17 16:55:09 -07:00
parent 72c0a6c4a9
commit 06cd13a17f
9 changed files with 70 additions and 36 deletions
-8
View File
@@ -11,14 +11,6 @@
#include "pool.h"
#define MAX_CARDS_PER_HAND (NUM_SUITS * NUM_RANKS)
#define MAX_CARDS_ON_SCREEN 16
POOL_DECLARE_TYPE(Card);
POOL_DEFINE_TYPE(Card, MAX_CARDS_PER_HAND);
POOL_DECLARE_TYPE(CardObject);
POOL_DEFINE_TYPE(CardObject, MAX_CARDS_ON_SCREEN);
// Card sprites lookup table. First index is the suit, second index is the rank. The value is the tile index.
const static u16 card_sprite_lut[NUM_SUITS][NUM_RANKS] = {
{0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192},