annotate src/gb/GB.h @ 618:a79e5a852347

minor grammar fixes.
author Robert McIntyre <rlm@mit.edu>
date Sun, 09 Jun 2013 15:50:28 -0400
parents fa7676dbf6f2
children
rev   line source
rlm@1 1 #ifndef VBA_GB_H
rlm@1 2 #define VBA_GB_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 typedef union
rlm@1 12 {
rlm@1 13 struct
rlm@1 14 {
rlm@1 15 #ifdef WORDS_BIGENDIAN
rlm@1 16 u8 B1, B0;
rlm@1 17 #else
rlm@1 18 u8 B0, B1;
rlm@1 19 #endif
rlm@1 20 } B;
rlm@1 21 u16 W;
rlm@1 22 } gbRegister;
rlm@1 23
rlm@1 24 extern bool gbLoadRom(const char *);
rlm@92 25 extern int gbEmulate(int);
rlm@1 26 extern bool gbIsGameboyRom(const char *);
rlm@1 27 extern void gbSoundReset();
rlm@1 28 extern void gbSoundSetQuality(int);
rlm@1 29 extern void gbReset(bool userReset = false);
rlm@1 30 extern void gbCleanUp();
rlm@1 31 extern bool gbWriteBatteryFile(const char *);
rlm@1 32 extern bool gbWriteBatteryFile(const char *, bool);
rlm@1 33 extern bool gbWriteBatteryToStream(gzFile);
rlm@1 34 extern bool gbReadBatteryFile(const char *);
rlm@1 35 extern bool gbReadBatteryFromStream(gzFile);
rlm@1 36 extern bool gbWriteSaveState(const char *);
rlm@1 37 extern bool gbWriteMemSaveState(char *, int);
rlm@1 38 extern bool gbReadSaveState(const char *);
rlm@1 39 extern bool gbReadMemSaveState(char *, int);
rlm@1 40 extern bool gbReadSaveStateFromStream(gzFile);
rlm@1 41 extern bool gbWriteSaveStateToStream(gzFile);
rlm@1 42 extern void gbSgbRenderBorder();
rlm@1 43 extern bool gbWritePNGFile(const char *);
rlm@1 44 extern bool gbWriteBMPFile(const char *);
rlm@1 45 extern bool gbReadGSASnapshot(const char *);
rlm@1 46
rlm@496 47 extern void getPixels32(int32 *);
rlm@496 48
rlm@59 49 extern int getRamSize();
rlm@59 50 extern int getRomSize();
rlm@93 51
rlm@93 52 extern void storeMemory(int32 *);
rlm@96 53 extern void writeMemory(int32 *);
rlm@96 54
rlm@60 55 extern void storeRam(int32 *);
rlm@61 56 extern void storeRom(int32 *);
rlm@191 57 extern void writeRom(int32 *);
rlm@191 58
rlm@61 59 extern void storeWRam(int32 *);
rlm@61 60 extern void storeVRam(int32 *);
rlm@62 61 extern void storeRegisters(int32 *);
rlm@100 62 extern void setRegisters(int32 *);
rlm@100 63
rlm@76 64 extern long gbWriteMemSaveStatePos(char *, int);
rlm@59 65
rlm@522 66 extern u8 gbReadMemory(u16 address);
rlm@522 67
rlm@523 68 extern u16 soundFrameSound[735 * 30 * 2];
rlm@524 69 extern u16 soundFinalWave[1470];
rlm@523 70 extern int32 soundFrameSoundWritten;
rlm@525 71 extern u8 soundCopyBuffer[1470 * 2];
rlm@525 72
rlm@523 73
rlm@1 74 extern struct EmulatedSystem GBSystem;
rlm@1 75 extern struct EmulatedSystemCounters &GBSystemCounters;
rlm@1 76
rlm@1 77 #endif // VBA_GB_H