diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-02-24 14:06:59 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-02-24 14:06:59 +0100 |
commit | b69ddf1cd7123cc26b3936eda3c7c96a2750e612 (patch) | |
tree | 9ca68b0fb0aebe4cbd68f22f35e3da298baf8d5c /src/ppu/consts.h | |
parent | f3a47bde9bfaaa716de835c0c1499a685b4ac4f7 (diff) |
rename and move files
Diffstat (limited to 'src/ppu/consts.h')
-rw-r--r-- | src/ppu/consts.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ppu/consts.h b/src/ppu/consts.h new file mode 100644 index 0000000..ee94a69 --- /dev/null +++ b/src/ppu/consts.h @@ -0,0 +1,26 @@ +#pragma once + +#define HH_PPU_PALETTE_COUNT 8 +#define HH_PPU_PALETTE_COLOR_COUNT 8 +#define HH_PPU_RAM_BUS_ADDR_WIDTH 16 +#define HH_PPU_RAM_BUS_DATA_WIDTH 16 +#define HH_PPU_FG_SPRITE_COUNT 128 +#define HH_PPU_SPRITE_WIDTH 16 +#define HH_PPU_SPRITE_HEIGHT 16 +#define HH_PPU_SCREEN_WIDTH 320 +#define HH_PPU_SCREEN_HEIGHT 240 +#define HH_PPU_BG_CANVAS_TILES_H 40 +#define HH_PPU_BG_CANVAS_TILES_V 30 + +#include "types.h" + +#define HH_PPU_VRAM_TMM_OFFSET ((hh_ppu_addr_t) 0x0000) +#define HH_PPU_VRAM_TMM_SIZE ((hh_ppu_addr_t) 0xd000) +#define HH_PPU_VRAM_BAM_OFFSET ((hh_ppu_addr_t) 0xd000) +#define HH_PPU_VRAM_BAM_SIZE ((hh_ppu_addr_t) 0x04b0) +#define HH_PPU_VRAM_FAM_OFFSET ((hh_ppu_addr_t) 0xd800) +#define HH_PPU_VRAM_FAM_SIZE ((hh_ppu_addr_t) 0x0100) +#define HH_PPU_VRAM_PAL_OFFSET ((hh_ppu_addr_t) 0xdc00) +#define HH_PPU_VRAM_PAL_SIZE ((hh_ppu_addr_t) 0x0040) +#define HH_PPU_VRAM_AUX_OFFSET ((hh_ppu_addr_t) 0xde00) +#define HH_PPU_VRAM_AUX_SIZE ((hh_ppu_addr_t) 0x0002) |