CubeGotchi/savestate.h

16 lines
265 B
C
Raw Normal View History

2024-06-11 16:36:51 +00:00
#pragma once
#define EEPROM_MAGIC_NUMBER 0x12
void initEEPROM();
bool validEEPROM();
void loadStateFromEEPROM(cpu_state_t* cpuState);
void eraseStateFromEEPROM();
void saveStateToEEPROM(cpu_state_t* cpuState);
void loadHardcodedState(cpu_state_t* cpuState);