aboutsummaryrefslogtreecommitdiff
path: root/src/ppusim/mem.c
blob: bd8606eb5d4f5eab89f2fb15d6643eedd7c9a305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>

#include "ppu/internals.h"
#include "ppusim/mem.h"

hh_ppu_data_t *g_hh_ppusim_vram = NULL;

void hh_ppu_vram_dwrite(hh_ppu_addr_t addr, hh_ppu_data_t data) {
	if (!hh_ppu_vram_valid_address(addr)) return;
	// printf("ppu[0x%04x] = %04x\n", addr, data);
	g_hh_ppusim_vram[addr] = data;
}