CubeGotchi/savestate.h
2024-06-11 18:36:51 +02:00

16 lines
265 B
C

#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);