aboutsummaryrefslogtreecommitdiff
path: root/src/ppu/consts.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-03-22 19:58:15 +0100
committerlonkaars <loek@pipeframe.xyz>2023-03-22 19:58:15 +0100
commitf4295898e04de8ef2878aac1774dc7ccda501317 (patch)
treef0d16d2cbf693c53caa4265c8f9d20b12372b358 /src/ppu/consts.h
parent1bb8b7eda56de815bcfc9c6f8b07df399cf400a0 (diff)
load static/tilemap.bin in ppusim
Diffstat (limited to 'src/ppu/consts.h')
-rw-r--r--src/ppu/consts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ppu/consts.h b/src/ppu/consts.h
index a27b7b7..d7caf5e 100644
--- a/src/ppu/consts.h
+++ b/src/ppu/consts.h
@@ -55,3 +55,9 @@
#define HH_PPU_VRAM_AUX_OFFSET ((hh_ppu_addr_t) 0xde00)
/** @brief auxiliary memory size in words */
#define HH_PPU_VRAM_AUX_SIZE ((hh_ppu_addr_t) 0x0002)
+
+/** @brief sprite size in bytes */
+#define HH_PPU_BYTE_SPRITE_SIZE (HH_PPU_VRAM_TMM_SPRITE_SIZE * sizeof(hh_ppu_data_t))
+/** @brief sprite size in 32-bit words (for stm) */
+#define HH_PPU_NATIVE_SPRITE_SIZE (HH_PPU_BYTE_SPRITE_SIZE / sizeof(uint32_t))
+