Full savestating to memory

This commit is contained in:
2025-05-23 15:49:26 -06:00
parent e9d5b359d0
commit b86d550812
23 changed files with 378 additions and 56 deletions

View File

@ -2,6 +2,18 @@
#include <common.h>
typedef struct {
u8 wram[0x2000];
u8 hram[0x80];
} ram_context;
typedef struct {
ram_context ctx;
} ram_state;
void ram_save_state(ram_state*);
void ram_load_state(const ram_state*);
u8 wram_read(u16 address);
void wram_write(u16 address, u8 value);