aboutsummaryrefslogtreecommitdiff
path: root/source/spc7110.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/spc7110.h')
-rw-r--r--source/spc7110.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/source/spc7110.h b/source/spc7110.h
index 92fb1d3..06a594a 100644
--- a/source/spc7110.h
+++ b/source/spc7110.h
@@ -24,7 +24,7 @@ uint8_t* Get7110BasePtr(uint32_t);
void S9xSpc7110Reset();
void S9xUpdateRTC();
void Do7110Logging();
-int S9xRTCDaysInMonth(int month, int year);
+int32_t S9xRTCDaysInMonth(int32_t month, int32_t year);
//These are platform-dependant functions, but should work on
//most systems that use GNU compilers, and on Win32.
@@ -34,67 +34,67 @@ void SPC7110Grab(char*);
typedef struct SPC7110RTC
{
- unsigned char reg[16];
- int16_t index;
- uint8_t control;
- bool init;
- time_t last_used;
+ uint8_t reg[16];
+ int16_t index;
+ uint8_t control;
+ bool init;
+ time_t last_used;
} S7RTC;
typedef struct SPC7110EmuVars
{
- unsigned char reg4800;
- unsigned char reg4801;
- unsigned char reg4802;
- unsigned char reg4803;
- unsigned char reg4804;
- unsigned char reg4805;
- unsigned char reg4806;
- unsigned char reg4807;
- unsigned char reg4808;
- unsigned char reg4809;
- unsigned char reg480A;
- unsigned char reg480B;
- unsigned char reg480C;
- unsigned char reg4811;
- unsigned char reg4812;
- unsigned char reg4813;
- unsigned char reg4814;
- unsigned char reg4815;
- unsigned char reg4816;
- unsigned char reg4817;
- unsigned char reg4818;
- unsigned char reg4820;
- unsigned char reg4821;
- unsigned char reg4822;
- unsigned char reg4823;
- unsigned char reg4824;
- unsigned char reg4825;
- unsigned char reg4826;
- unsigned char reg4827;
- unsigned char reg4828;
- unsigned char reg4829;
- unsigned char reg482A;
- unsigned char reg482B;
- unsigned char reg482C;
- unsigned char reg482D;
- unsigned char reg482E;
- unsigned char reg482F;
- unsigned char reg4830;
- unsigned char reg4831;
- unsigned char reg4832;
- unsigned char reg4833;
- unsigned char reg4834;
- unsigned char reg4840;
- unsigned char reg4841;
- unsigned char reg4842;
- uint8_t AlignBy;
- uint8_t written;
- uint8_t offset_add;
- uint32_t DataRomOffset;
- uint32_t DataRomSize;
- uint32_t bank50Internal;
- uint8_t bank50[DECOMP_BUFFER_SIZE];
+ uint8_t reg4800;
+ uint8_t reg4801;
+ uint8_t reg4802;
+ uint8_t reg4803;
+ uint8_t reg4804;
+ uint8_t reg4805;
+ uint8_t reg4806;
+ uint8_t reg4807;
+ uint8_t reg4808;
+ uint8_t reg4809;
+ uint8_t reg480A;
+ uint8_t reg480B;
+ uint8_t reg480C;
+ uint8_t reg4811;
+ uint8_t reg4812;
+ uint8_t reg4813;
+ uint8_t reg4814;
+ uint8_t reg4815;
+ uint8_t reg4816;
+ uint8_t reg4817;
+ uint8_t reg4818;
+ uint8_t reg4820;
+ uint8_t reg4821;
+ uint8_t reg4822;
+ uint8_t reg4823;
+ uint8_t reg4824;
+ uint8_t reg4825;
+ uint8_t reg4826;
+ uint8_t reg4827;
+ uint8_t reg4828;
+ uint8_t reg4829;
+ uint8_t reg482A;
+ uint8_t reg482B;
+ uint8_t reg482C;
+ uint8_t reg482D;
+ uint8_t reg482E;
+ uint8_t reg482F;
+ uint8_t reg4830;
+ uint8_t reg4831;
+ uint8_t reg4832;
+ uint8_t reg4833;
+ uint8_t reg4834;
+ uint8_t reg4840;
+ uint8_t reg4841;
+ uint8_t reg4842;
+ uint8_t AlignBy;
+ uint8_t written;
+ uint8_t offset_add;
+ uint32_t DataRomOffset;
+ uint32_t DataRomSize;
+ uint32_t bank50Internal;
+ uint8_t bank50[DECOMP_BUFFER_SIZE];
} SPC7110Regs;
extern SPC7110Regs s7r;