16 lines
265 B
C
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);
|