Mercurial > vba-clojure
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 #ifndef VBA_EEPROM_H | |
2 #define VBA_EEPROM_H | |
3 | |
4 #if _MSC_VER > 1000 | |
5 #pragma once | |
6 #endif // _MSC_VER > 1000 | |
7 | |
8 #include "zlib.h" | |
9 #include "../Port.h" | |
10 | |
11 extern void eepromSaveGame(gzFile gzFile); | |
12 extern void eepromReadGame(gzFile gzFile, int version); | |
13 extern int eepromRead(u32 address); | |
14 extern void eepromWrite(u32 address, u8 value); | |
15 extern void eepromReset(); | |
16 extern void eepromErase(); | |
17 extern u8 eepromData[0x2000]; | |
18 extern bool8 eepromInUse; | |
19 extern int32 eepromSize; | |
20 | |
21 #define EEPROM_IDLE 0 | |
22 #define EEPROM_READADDRESS 1 | |
23 #define EEPROM_READDATA 2 | |
24 #define EEPROM_READDATA2 3 | |
25 #define EEPROM_WRITEDATA 4 | |
26 | |
27 #endif // VBA_EEPROM_H |