mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-25 20:16:53 +01:00
22 lines
614 B
C
22 lines
614 B
C
#ifndef EEPROM_H
|
|
#define EEPROM_H
|
|
|
|
extern void eepromSaveGame(gzFile _gzFile);
|
|
extern void eepromReadGame(gzFile _gzFile, int version);
|
|
extern void eepromReadGameSkip(gzFile _gzFile, int version);
|
|
extern int eepromRead(u32 address);
|
|
extern void eepromWrite(u32 address, u8 value);
|
|
extern void eepromInit();
|
|
extern void eepromReset();
|
|
extern u8 eepromData[0x2000];
|
|
extern bool eepromInUse;
|
|
extern int eepromSize;
|
|
|
|
#define EEPROM_IDLE 0
|
|
#define EEPROM_READADDRESS 1
|
|
#define EEPROM_READDATA 2
|
|
#define EEPROM_READDATA2 3
|
|
#define EEPROM_WRITEDATA 4
|
|
|
|
#endif // EEPROM_H
|