summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMarko Pusljar <LM1234@gmail.com>2010-08-05 17:00:32 +0000
committerMarko Pusljar <LM1234@gmail.com>2010-08-05 17:00:32 +0000
commit8dc01b685fbd0d0d0820a0d0399a9f1f0e842e43 (patch)
tree6ca927366d8ea20d6ffd2673900a8a008879521c /Source/Core
parentca9c174450a9bc5313784a087c9cefd361a3ab9f (diff)
dsp stuff - the same ucode hash under lle and hle now (had to rename couple of dissasms), ucode dumping under hle (debug only), small dsp:read32 change (needed for some homebrew)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6059 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/HW/DSP.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/Core/Core/Src/HW/DSP.cpp b/Source/Core/Core/Src/HW/DSP.cpp
index b9806933c0..07dd335bf5 100644
--- a/Source/Core/Core/Src/HW/DSP.cpp
+++ b/Source/Core/Core/Src/HW/DSP.cpp
@@ -497,6 +497,7 @@ void Write16(const u16 _Value, const u32 _Address)
void Read32(u32& _uReturnValue, const u32 _iAddress)
{
INFO_LOG(DSPINTERFACE, "DSPInterface(r32) 0x%08x", _iAddress);
+
switch (_iAddress & 0xFFFF)
{
// DSP
@@ -504,6 +505,24 @@ void Read32(u32& _uReturnValue, const u32 _iAddress)
_uReturnValue = (dsp_plugin->DSP_ReadMailboxHigh(true) << 16) | dsp_plugin->DSP_ReadMailboxLow(true);
break;
+ // AI
+ case AUDIO_DMA_START_HI:
+ _uReturnValue = g_audioDMA.SourceAddress;
+ break;
+
+ // ARAM
+ case AR_DMA_ARADDR_H:
+ _uReturnValue = g_arDMA.ARAddr;
+ break;
+
+ case AR_DMA_CNT_H:
+ _uReturnValue = g_arDMA.Cnt.Hex;
+ break;
+
+ case AR_DMA_MMADDR_H:
+ _uReturnValue = g_arDMA.MMAddr;
+ break;
+
default:
_dbg_assert_(DSPINTERFACE,0);
break;