mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-27 21:42:40 +00:00
use dolphin-style typedefs in dsp-lle testing
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2793 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
20b54fb71f
commit
57105f08d6
28 changed files with 687 additions and 701 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "gdsp_interpreter.h"
|
||||
|
||||
bool DumpDSPCode(uint32 _Address, uint32 _Length, uint32 crc)
|
||||
bool DumpDSPCode(u32 _Address, u32 _Length, u32 crc)
|
||||
{
|
||||
char szFilename[MAX_PATH];
|
||||
sprintf(szFilename, "c:\\_\\DSP_UC_%08X.bin", crc);
|
||||
|
@ -44,7 +44,7 @@ bool DumpDSPCode(uint32 _Address, uint32 _Length, uint32 crc)
|
|||
}
|
||||
|
||||
|
||||
uint32 GenerateCRC(const unsigned char* _pBuffer, int _pLength)
|
||||
u32 GenerateCRC(const unsigned char* _pBuffer, int _pLength)
|
||||
{
|
||||
unsigned long CRC = 0xFFFFFFFF;
|
||||
|
||||
|
@ -71,7 +71,7 @@ uint32 GenerateCRC(const unsigned char* _pBuffer, int _pLength)
|
|||
}
|
||||
|
||||
|
||||
bool DumpCWCode(uint32 _Address, uint32 _Length)
|
||||
bool DumpCWCode(u32 _Address, u32 _Length)
|
||||
{
|
||||
FILE* pFile = fopen("d:\\DSP_UCode.bin", "wb");
|
||||
|
||||
|
@ -79,7 +79,7 @@ bool DumpCWCode(uint32 _Address, uint32 _Length)
|
|||
{
|
||||
for (size_t i = _Address; i < _Address + _Length; i++)
|
||||
{
|
||||
uint16 val = Common::swap16(g_dsp.iram[i]);
|
||||
u16 val = Common::swap16(g_dsp.iram[i]);
|
||||
fprintf(pFile, " cw 0x%04x \n", val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue