summaryrefslogtreecommitdiff
path: root/src/dsp1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dsp1.c')
-rw-r--r--src/dsp1.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dsp1.c b/src/dsp1.c
index 5287575..e3910bb 100644
--- a/src/dsp1.c
+++ b/src/dsp1.c
@@ -952,12 +952,13 @@ void DSP2SetByte(uint8 byte, uint16 address)
#ifdef FAST_LSB_WORD_ACCESS
*(uint32*)DSP1.output = DSP2Op09Word1 * DSP2Op09Word2;
#else
- uint32 temp;
- temp = DSP2Op09Word1 * DSP2Op09Word2;
- DSP1.output[0] = temp & 0xFF;
- DSP1.output[1] = (temp >> 8) & 0xFF;
- DSP1.output[2] = (temp >> 16) & 0xFF;
- DSP1.output[3] = (temp >> 24) & 0xFF;
+ {
+ uint32 temp = DSP2Op09Word1 * DSP2Op09Word2;
+ DSP1.output[0] = temp & 0xFF;
+ DSP1.output[1] = (temp >> 8) & 0xFF;
+ DSP1.output[2] = (temp >> 16) & 0xFF;
+ DSP1.output[3] = (temp >> 24) & 0xFF;
+ }
#endif
break;
case 0x05: