diff options
author | João Silva | 2017-08-13 06:02:24 +0100 |
---|---|---|
committer | João Silva | 2017-08-13 06:02:24 +0100 |
commit | fdaf2925f1353b07cd957ae47b0e6793648559be (patch) | |
tree | 64adbe13da0fe83d85097c5e4492b4b2634e3d95 /source/dsp1.c | |
parent | e18e3e55bbe96eb2e415ef0ba0ea743460ec0b7b (diff) | |
download | snes9x2005-fdaf2925f1353b07cd957ae47b0e6793648559be.tar.gz snes9x2005-fdaf2925f1353b07cd957ae47b0e6793648559be.tar.bz2 snes9x2005-fdaf2925f1353b07cd957ae47b0e6793648559be.zip |
Copied SPC7110 emulation from snes9x_3ds.
Diffstat (limited to 'source/dsp1.c')
-rw-r--r-- | source/dsp1.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/dsp1.c b/source/dsp1.c index 98c0077..6a7a6b6 100644 --- a/source/dsp1.c +++ b/source/dsp1.c @@ -21,10 +21,7 @@ void S9xResetDSP1() uint8_t S9xGetDSP(uint16_t address) { - uint8_t t; - - t = (*GetDSP)(address); - return (t); + return (*GetDSP)(address); } void S9xSetDSP(uint8_t byte, uint16_t address) @@ -48,8 +45,7 @@ void DSP1SetByte(uint8_t byte, uint16_t address) DSP1.in_index = 0; DSP1.waiting4command = false; DSP1.first_parameter = true; - // Mario Kart uses 0x00, 0x02, 0x06, 0x0c, 0x28, 0x0a - switch (byte) + switch (byte) // Mario Kart uses 0x00, 0x02, 0x06, 0x0c, 0x28, 0x0a { case 0x07: case 0x0a: @@ -628,8 +624,7 @@ void DSP2SetByte(uint8_t byte, uint16_t address) uint32_t temp; #endif - if ((address & 0xf000) == 0x6000 || - (address >= 0x8000 && address < 0xc000)) + if ((address & 0xf000) == 0x6000 || (address >= 0x8000 && address < 0xc000)) { if (DSP1.waiting4command) { |