annotate src/gba/Flash.h @ 555:2d9bf762a073

tightened up control transfer waiting period.
author Robert McIntyre <rlm@mit.edu>
date Fri, 31 Aug 2012 00:52:33 -0500
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #ifndef VBA_FLASH_H
rlm@1 2 #define VBA_FLASH_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 flashSaveGame(gzFile gzFile);
rlm@1 12 extern void flashReadGame(gzFile gzFile, int version);
rlm@1 13 extern u8 flashRead(u32 address);
rlm@1 14 extern void flashWrite(u32 address, u8 byte);
rlm@1 15 extern u8 flashSaveMemory[0x20000 + 4];
rlm@1 16 extern void flashSaveDecide(u32 address, u8 byte);
rlm@1 17 extern void flashReset();
rlm@1 18 extern void flashErase();
rlm@1 19 extern void flashSetSize(int size);
rlm@1 20
rlm@1 21 extern int32 flashSize;
rlm@1 22
rlm@1 23 #endif // VBA_FLASH_H