aboutsummaryrefslogtreecommitdiff
path: root/src/ppusim/sim.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-04-06 16:49:36 +0200
committerlonkaars <loek@pipeframe.xyz>2023-04-06 16:49:36 +0200
commit892424ba4d0c979e4351f7a866b6fe777783e4d2 (patch)
treed6688765834be74370038d8662703bd83b1acd40 /src/ppusim/sim.c
parent4881723cf765fbd7bad2a1f08baf5897a7425401 (diff)
dma send done and working
Diffstat (limited to 'src/ppusim/sim.c')
-rw-r--r--src/ppusim/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppusim/sim.c b/src/ppusim/sim.c
index be5fbeb..14d79a7 100644
--- a/src/ppusim/sim.c
+++ b/src/ppusim/sim.c
@@ -24,7 +24,7 @@ void hh_ppu_init() {
g_hh_ppusim_threads = malloc(sizeof(pthread_t) * g_hh_ppusim_core_count);
g_hh_ppusim_vram = malloc(sizeof(hh_ppu_data_t) * 0xffff);
- memset(g_hh_ppusim_vram, 0x0000, 0xffff);
+ memset(g_hh_ppusim_vram, 0x0000, 0xffff * sizeof(hh_ppu_data_t));
}
void hh_ppu_load_tilemap() {