forked from dolphin-emu/dolphin
		
	DSPTool print register names in dump
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3931 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
		@@ -19,6 +19,7 @@
 | 
			
		||||
#include "FileUtil.h"
 | 
			
		||||
#include "StringUtil.h"
 | 
			
		||||
#include "DSPCodeUtil.h"
 | 
			
		||||
#include "DSPTables.h"
 | 
			
		||||
 | 
			
		||||
// Stub out the dsplib host stuff, since this is just a simple cmdline tools.
 | 
			
		||||
u8 DSPHost_ReadHostMemory(u32 addr) { return 0; }
 | 
			
		||||
@@ -301,7 +302,7 @@ int main(int argc, const char *argv[])
 | 
			
		||||
		results.append("Start:\n");
 | 
			
		||||
		for (int initial_reg = 0; initial_reg < 32; initial_reg++)
 | 
			
		||||
		{
 | 
			
		||||
			results.append(StringFromFormat("%02x %04x ", initial_reg, reg_vector.at(initial_reg)));
 | 
			
		||||
			results.append(StringFromFormat("%s: %04x ", pdregname(initial_reg), reg_vector.at(initial_reg)));
 | 
			
		||||
			if ((initial_reg + 1) % 8 == 0)
 | 
			
		||||
				results.append("\n");
 | 
			
		||||
		}
 | 
			
		||||
@@ -317,7 +318,7 @@ int main(int argc, const char *argv[])
 | 
			
		||||
				u16 current_reg = reg_vector.at(step*32+reg);
 | 
			
		||||
				if (last_reg != current_reg)
 | 
			
		||||
				{
 | 
			
		||||
					results.append(StringFromFormat("%02x %04x %04x\n", reg, last_reg, current_reg));
 | 
			
		||||
					results.append(StringFromFormat("%s: %04x %04x\n", pdregname(reg), last_reg, current_reg));
 | 
			
		||||
					changed = true;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user