From fdaf2925f1353b07cd957ae47b0e6793648559be Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 13 Aug 2017 06:02:24 +0100 Subject: Copied SPC7110 emulation from snes9x_3ds. --- source/dsp1.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'source/dsp1.c') 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) { -- cgit v1.2.3