diff options
author | Twinaphex | 2017-06-18 18:41:06 +0200 |
---|---|---|
committer | GitHub | 2017-06-18 18:41:06 +0200 |
commit | 1aecedc999445e9a27e04f665fd562b576775d08 (patch) | |
tree | c526c7d332be548a42364eea9113b6d33345b840 /source/fxemu.c | |
parent | dc596c886e0ec2728dc353dd7862cdf1e5a5ff44 (diff) | |
parent | bcaf44c511efaad9d803dde9b0fdbb046498c66f (diff) | |
download | snes9x2005-1aecedc999445e9a27e04f665fd562b576775d08.tar.gz snes9x2005-1aecedc999445e9a27e04f665fd562b576775d08.tar.bz2 snes9x2005-1aecedc999445e9a27e04f665fd562b576775d08.zip |
Merge pull request #36 from jamsilva/master
Compatibility fixes.
Diffstat (limited to 'source/fxemu.c')
-rw-r--r-- | source/fxemu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fxemu.c b/source/fxemu.c index 3995a53..dcbf04d 100644 --- a/source/fxemu.c +++ b/source/fxemu.c @@ -7,7 +7,7 @@ #include <stdio.h> /* The FxChip Emulator's internal variables */ -struct FxRegs_s GSU; // This will be initialized when loading a ROM +FxRegs_s GSU; /* This will be initialized when loading a ROM */ void FxCacheWriteAccess(uint16_t vAddress) { @@ -282,10 +282,10 @@ static void fx_writeRegisterSpaceAfterUse() } /* Reset the FxChip */ -void FxReset(struct FxInit_s* psFxInfo) +void FxReset(FxInit_s* psFxInfo) { /* Clear all internal variables */ - memset((uint8_t*) &GSU, 0, sizeof(struct FxRegs_s)); + memset(&GSU, 0, sizeof(FxRegs_s)); /* Set default registers */ GSU.pvSreg = GSU.pvDreg = &R0; |