fix a few issues with actually using the dsp lle debugger: stepping/reg updates/etc should behave better

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3879 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-07-24 02:15:04 +00:00
parent 2ab09ecf57
commit 873190d148
3 changed files with 36 additions and 25 deletions

View File

@ -75,9 +75,9 @@ void Step()
{ {
DSPCore_CheckExceptions(); DSPCore_CheckExceptions();
#if PROFILE
g_dsp.step_counter++; g_dsp.step_counter++;
#if PROFILE
g_dsp.err_pc = g_dsp.pc; g_dsp.err_pc = g_dsp.pc;
ProfilerAddDelta(g_dsp.err_pc, 1); ProfilerAddDelta(g_dsp.err_pc, 1);

View File

@ -107,7 +107,10 @@ void DSPDebuggerLLE::OnChangeState(wxCommandEvent& event)
case ID_STEPTOOL: case ID_STEPTOOL:
if (DSPCore_GetState() == DSPCORE_STEPPING) if (DSPCore_GetState() == DSPCORE_STEPPING)
{
DSPCore_Step(); DSPCore_Step();
Refresh();
}
break; break;
case ID_SHOWPCTOOL: case ID_SHOWPCTOOL:
@ -120,8 +123,8 @@ void DSPDebuggerLLE::OnChangeState(wxCommandEvent& event)
void DSPDebuggerLLE::OnShowPC(wxCommandEvent& event) void DSPDebuggerLLE::OnShowPC(wxCommandEvent& event)
{ {
// UpdateDisAsmListView will focus on PC
Refresh(); Refresh();
FocusOnPC();
} }
void DSPDebuggerLLE::Refresh() void DSPDebuggerLLE::Refresh()

View File

@ -4,14 +4,22 @@
IROM_BASE: equ 0x8000 IROM_BASE: equ 0x8000
; Exception vectors ; Exception vectors
nop nop nop
nop nop nop
nop nop nop
nop nop nop
nop nop nop
nop nop nop
nop halt nop
rti halt nop
nop
nop
nop
nop
nop
halt ; Exception 0-6 nop slide to here
rti ; Exception 7
halt
; Entry point ; Entry point
; Standard init stuff ; Standard init stuff
@ -123,20 +131,20 @@ wait_dma:
jlz wait_dma jlz wait_dma
ret ret
; Trailing nops... ; Trailing nops...pad to 32bytes
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
nop nop
; uCode is 0xb0 words ; uCode is 0xb0 words