summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore/Src/DSPAccelerator.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-06-28 10:24:44 +0000
committerhrydgard <hrydgard@gmail.com>2009-06-28 10:24:44 +0000
commit5c7fc8ed7b66c864a0cfe27cf451f43b68f9a856 (patch)
treee617bae0df96a6b976e6c6437cc2774fad223d81 /Source/Core/DSPCore/Src/DSPAccelerator.cpp
parent895b02f4102885d8ab8c4419d76dfef7f4c21703 (diff)
DSP: build fixin', more movin', some comments.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3564 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPAccelerator.cpp')
-rw-r--r--Source/Core/DSPCore/Src/DSPAccelerator.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/Core/DSPCore/Src/DSPAccelerator.cpp b/Source/Core/DSPCore/Src/DSPAccelerator.cpp
index 11aa749a04..5a3441c420 100644
--- a/Source/Core/DSPCore/Src/DSPAccelerator.cpp
+++ b/Source/Core/DSPCore/Src/DSPAccelerator.cpp
@@ -18,8 +18,8 @@
#include "Common.h"
#include "DSPCore.h"
#include "DSPHost.h"
-#include "gdsp_interface.h"
-#include "gdsp_interpreter.h"
+#include "DSPHWInterface.h"
+#include "DSPInterpreter.h"
// The hardware adpcm decoder :)
s16 ADPCM_Step(u32& _rSamplePos)
@@ -106,7 +106,12 @@ u16 dsp_read_accelerator()
u16 val;
- // lets the "hardware" decode
+ // let's do the "hardware" decode
+ // DSP_FORMAT is interesting - the Zelda ucode seems to indicate that the bottom
+ // two bits specify the "read size" and the address multiplier.
+ // The bits above that may be things like sign extention and do/do not use ADPCM.
+ // It also remains to be figured out whether there's a difference between the usual
+ // accelerator "read address" and 0xd3.
switch (gdsp_ifx_regs[DSP_FORMAT])
{
case 0x00: // ADPCM audio
@@ -129,9 +134,9 @@ u16 dsp_read_accelerator()
break;
}
- // TODO: Take ifx GAIN into account.
+ // TODO: Take GAIN into account, whatever it is.
- // check for loop
+ // Check for loop.
if (Address >= EndAddress)
{
// Set address back to start address.