diff src/gba/EEprom.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/gba/EEprom.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,27 @@
     1.4 +#ifndef VBA_EEPROM_H
     1.5 +#define VBA_EEPROM_H
     1.6 +
     1.7 +#if _MSC_VER > 1000
     1.8 +#pragma once
     1.9 +#endif // _MSC_VER > 1000
    1.10 +
    1.11 +#include "zlib.h"
    1.12 +#include "../Port.h"
    1.13 +
    1.14 +extern void eepromSaveGame(gzFile gzFile);
    1.15 +extern void eepromReadGame(gzFile gzFile, int version);
    1.16 +extern int eepromRead(u32 address);
    1.17 +extern void eepromWrite(u32 address, u8 value);
    1.18 +extern void eepromReset();
    1.19 +extern void eepromErase();
    1.20 +extern u8    eepromData[0x2000];
    1.21 +extern bool8 eepromInUse;
    1.22 +extern int32 eepromSize;
    1.23 +
    1.24 +#define EEPROM_IDLE           0
    1.25 +#define EEPROM_READADDRESS    1
    1.26 +#define EEPROM_READDATA       2
    1.27 +#define EEPROM_READDATA2      3
    1.28 +#define EEPROM_WRITEDATA      4
    1.29 +
    1.30 +#endif // VBA_EEPROM_H