aboutsummaryrefslogtreecommitdiff
path: root/src/ppu/internals.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-24 14:06:59 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-24 14:06:59 +0100
commitb69ddf1cd7123cc26b3936eda3c7c96a2750e612 (patch)
tree9ca68b0fb0aebe4cbd68f22f35e3da298baf8d5c /src/ppu/internals.h
parentf3a47bde9bfaaa716de835c0c1499a685b4ac4f7 (diff)
rename and move files
Diffstat (limited to 'src/ppu/internals.h')
-rw-r--r--src/ppu/internals.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ppu/internals.h b/src/ppu/internals.h
new file mode 100644
index 0000000..ddb2196
--- /dev/null
+++ b/src/ppu/internals.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <stdbool.h>
+
+#include "types.h"
+
+typedef struct {
+ hh_ppu_addr_t offset;
+ hh_ppu_addr_t size;
+ hh_ppu_data_t* data;
+} hh_s_ppu_vram_data;
+
+bool hh_ppu_vram_valid_address(hh_ppu_addr_t addr);
+void hh_ppu_vram_write(hh_ppu_addr_t addr, hh_ppu_data_t data);
+void hh_ppu_vram_memcpy(void* a, hh_s_ppu_vram_data b);
+
+hh_s_ppu_vram_data* hh_ppu_2nat_bam(hh_s_ppu_loc_bam_entry);
+hh_s_ppu_vram_data* hh_ppu_2nat_fam(hh_s_ppu_loc_fam_entry);
+hh_s_ppu_vram_data* hh_ppu_2nat_aux(hh_s_ppu_loc_aux);
+hh_s_ppu_vram_data* hh_ppu_2nat_sprite(hh_ppu_loc_sprite_data_t);
+hh_s_ppu_vram_data* hh_ppu_2nat_pal(hh_ppu_loc_palette_data_t);
+