Mercurial > vba-clojure
annotate src/gba/EEprom.h @ 278:7ecea582ec9d
script: bought initial 5 items.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 27 Mar 2012 13:10:48 -0500 |
parents | f9f4f1b99eed |
children |
rev | line source |
---|---|
rlm@1 | 1 #ifndef VBA_EEPROM_H |
rlm@1 | 2 #define VBA_EEPROM_H |
rlm@1 | 3 |
rlm@1 | 4 #if _MSC_VER > 1000 |
rlm@1 | 5 #pragma once |
rlm@1 | 6 #endif // _MSC_VER > 1000 |
rlm@1 | 7 |
rlm@1 | 8 #include "zlib.h" |
rlm@1 | 9 #include "../Port.h" |
rlm@1 | 10 |
rlm@1 | 11 extern void eepromSaveGame(gzFile gzFile); |
rlm@1 | 12 extern void eepromReadGame(gzFile gzFile, int version); |
rlm@1 | 13 extern int eepromRead(u32 address); |
rlm@1 | 14 extern void eepromWrite(u32 address, u8 value); |
rlm@1 | 15 extern void eepromReset(); |
rlm@1 | 16 extern void eepromErase(); |
rlm@1 | 17 extern u8 eepromData[0x2000]; |
rlm@1 | 18 extern bool8 eepromInUse; |
rlm@1 | 19 extern int32 eepromSize; |
rlm@1 | 20 |
rlm@1 | 21 #define EEPROM_IDLE 0 |
rlm@1 | 22 #define EEPROM_READADDRESS 1 |
rlm@1 | 23 #define EEPROM_READDATA 2 |
rlm@1 | 24 #define EEPROM_READDATA2 3 |
rlm@1 | 25 #define EEPROM_WRITEDATA 4 |
rlm@1 | 26 |
rlm@1 | 27 #endif // VBA_EEPROM_H |