diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-06-28 10:00:25 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-06-28 10:00:25 +0000 |
| commit | 895b02f4102885d8ab8c4419d76dfef7f4c21703 (patch) | |
| tree | ea834590ba48451eeef493f22e4eddb57892e02d /Source/Core/DSPCore/Src/DSPAnalyzer.cpp | |
| parent | 7ea2bc5da9681bca748f783f433ccaf689f7b604 (diff) | |
DSP: Add txt file with luigi ucode comments (very basic). Rename some stuff. Remove function pointer in g_dsp structure, replace with a "Host" function call. Fix a problem where symbols weren't loaded into DSP debugger.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3563 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPAnalyzer.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPAnalyzer.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/Core/DSPCore/Src/DSPAnalyzer.cpp b/Source/Core/DSPCore/Src/DSPAnalyzer.cpp index c182fa33c8..db08157299 100644 --- a/Source/Core/DSPCore/Src/DSPAnalyzer.cpp +++ b/Source/Core/DSPCore/Src/DSPAnalyzer.cpp @@ -18,7 +18,7 @@ #include "DSPAnalyzer.h"
#include "DSPInterpreter.h"
#include "DSPTables.h"
-#include "gdsp_memory.h"
+#include "DSPMemoryMap.h"
namespace DSPAnalyzer {
@@ -30,12 +30,13 @@ u8 code_flags[ISPACE]; // as well give up its time slice immediately, after executing once.
// Max signature length is 6. A 0 in a signature is ignored.
-#define NUM_IDLE_SIGS 4
+#define NUM_IDLE_SIGS 5
#define MAX_IDLE_SIG_SIZE 6
// 0xFFFF means ignore.
const u16 idle_skip_sigs[NUM_IDLE_SIGS][MAX_IDLE_SIG_SIZE + 1] =
{
+ // From AX:
{ 0x26fc, // LRS $30, @DMBH
0x02c0, 0x8000, // ANDCF $30, #0x8000
0x029d, 0xFFFF, // JLZ 0x027a
@@ -52,6 +53,12 @@ const u16 idle_skip_sigs[NUM_IDLE_SIGS][MAX_IDLE_SIG_SIZE + 1] = 0x03c0, 0x8000, // ANDCF $31, #0x8000
0x029c, 0xFFFF, // JLNZ 0x0280
0, 0 }, // RET
+
+ // From Zelda:
+ { 0x00de, 0xFFFE, // LR $AC0.M, @CMBH
+ 0x02c0, 0x8000, // ANDCF $AC0.M, #0x8000
+ 0x029c, 0xFFFF, // JLNZ 0x05cf
+ 0 }
};
void Reset()
|
