mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Run code through the advanced tool 'sed' to remove trailing whitespace.
This commit is contained in:
@ -23,7 +23,7 @@ void IDSP::SendTask(void *addr, u16 iram_addr, u16 len, u16 start)
|
||||
// iram_addr dsp addr 4byte aligned (2 DSP words)
|
||||
// len block length in bytes multiple of 4 (wtf? if you want to fill whole iram, you need 8191)
|
||||
// (8191 % 4 = 3) wtffff
|
||||
// start dsp iram entry point
|
||||
// start dsp iram entry point
|
||||
while (CheckMailTo());
|
||||
SendMailTo(0x80F3A001);
|
||||
while (CheckMailTo());
|
||||
|
@ -36,7 +36,7 @@
|
||||
class IDSP {
|
||||
public:
|
||||
virtual ~IDSP() {}
|
||||
|
||||
|
||||
virtual void Init() = 0;
|
||||
virtual void Reset() = 0;
|
||||
virtual u32 CheckMailTo() = 0;
|
||||
|
@ -21,7 +21,7 @@
|
||||
// It's very unpolished though
|
||||
// Use Dolphin's dsptool to generate a new dsp_code.h.
|
||||
// Originally written by duddie and modified by FIRES. Then further modified by ector.
|
||||
|
||||
|
||||
#include <gccore.h>
|
||||
#include <malloc.h>
|
||||
#include <stdio.h>
|
||||
@ -75,7 +75,7 @@ u16 *dspbufC;
|
||||
u32 *dspbufU;
|
||||
|
||||
u16 dspreg_in[32] = {
|
||||
0x0410, 0x0510, 0x0610, 0x0710, 0x0810, 0x0910, 0x0a10, 0x0b10,
|
||||
0x0410, 0x0510, 0x0610, 0x0710, 0x0810, 0x0910, 0x0a10, 0x0b10,
|
||||
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x0855, 0x0966, 0x0a77, 0x0b88,
|
||||
0x0014, 0xfff5, 0x00ff, 0x2200, 0x0000, 0x0000, 0x0000, 0x0000,
|
||||
0x0003, 0x0004, 0x8000, 0x000C, 0x0007, 0x0008, 0x0009, 0x000a,
|
||||
@ -84,22 +84,22 @@ u16 dspreg_in[32] = {
|
||||
/* ttt ?
|
||||
|
||||
u16 dspreg_in[32] = {
|
||||
0x0e4c, 0x03c0, 0x0bd9, 0x06a3, 0x0c06, 0x0240, 0x0010, 0x0ecc,
|
||||
0x0e4c, 0x03c0, 0x0bd9, 0x06a3, 0x0c06, 0x0240, 0x0010, 0x0ecc,
|
||||
0x0000, 0x0000, 0x0000, 0x0000, 0x0322, 0x0000, 0x0000, 0x0000,
|
||||
0x0000, 0x0000, 0x00ff, 0x1b41, 0x0000, 0x0040, 0x00ff, 0x0000,
|
||||
0x1000, 0x96cc, 0x0000, 0x0000, 0x3fc0, 0x96cc, 0x0000, 0x0000,
|
||||
}; */
|
||||
|
||||
// if i set bit 0x4000 of SR my tests crashes :(
|
||||
// if i set bit 0x4000 of SR my tests crashes :(
|
||||
|
||||
/*
|
||||
// zelda 0x00da
|
||||
u16 dspreg_in[32] = {
|
||||
0x0a50, 0x0ca2, 0x04f8, 0x0ab0, 0x8039, 0x0000, 0x0000, 0x0000,
|
||||
0x0a50, 0x0ca2, 0x04f8, 0x0ab0, 0x8039, 0x0000, 0x0000, 0x0000,
|
||||
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x03d1, 0x0000, 0x0418, 0x0002, // r08 must have a value ... no idea why (ector: it's the looped addressing regs)
|
||||
0x0000, 0x0000, 0x00ff, 0x1804, 0xdb70, 0x4ddb, 0x0000, 0x0000,
|
||||
0x0000, 0x0000, 0x0000, 0xde6d, 0x0000, 0x0000, 0x0000, 0x004e,
|
||||
};*/
|
||||
};*/
|
||||
|
||||
u16 dspreg_out[1000][32];
|
||||
|
||||
@ -470,16 +470,16 @@ void dump_all_ucodes(bool fastmode)
|
||||
sprintf(filename, "sd:/dsp_dump_all.bin");
|
||||
FILE *f2 = fopen(filename, "ab");
|
||||
|
||||
if (fastmode == false)
|
||||
if (fastmode == false)
|
||||
{
|
||||
// Then write microcode dump to file
|
||||
sprintf(filename, "sd:/dsp_dump%d.bin", UCodeToDump);
|
||||
FILE *f = fopen(filename, "wb");
|
||||
if (f)
|
||||
if (f)
|
||||
{
|
||||
// First write initial regs
|
||||
written = fwrite(dspreg_in, 1, 32 * 2, f);
|
||||
|
||||
|
||||
// Then write all the dumps.
|
||||
written += fwrite(dspreg_out, 1, dsp_steps * 32 * 2, f);
|
||||
fclose(f);
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user