mitaclaw b6ec8ddc20 Simplify `std::fill` with `std::fill_n` 3 місяців тому
..
templates eba5b83772 tstaxh SR 15 роки тому
tests 12142c4fa8 DSPSpy: Add st3 BLOOP{,I} tests. 2 роки тому
util 6e61c32495 dspspy: fix a bug with ConsoleHelper 15 роки тому
.gitignore 3eaf06d2e0 DSPSpy: Create .gitignore 3 роки тому
ConsoleHelper.h b6ec8ddc20 Simplify `std::fill` with `std::fill_n` 1 місяць тому
DSPSpy.vcproj 8c3d8e0811 DSPSpy: Remove unused stubs 4 роки тому
DSPSpy.vcxproj 64cd4cc86f msbuild: use default Project attrs 2 роки тому
DSPSpy.vcxproj.filters 64cd4cc86f msbuild: use default Project attrs 2 роки тому
Makefile 1ad8dd7634 DSPSpy: Remove build.sh and sbuild.sh 3 роки тому
README.md ddc2dd91d2 DSPSpy: Create README.md 3 роки тому
dsp_interface.cpp e149ad4f0a treewide: convert GPLv2+ license info to SPDX tags 3 роки тому
dsp_interface.h e149ad4f0a treewide: convert GPLv2+ license info to SPDX tags 3 роки тому
dspregs.h e149ad4f0a treewide: convert GPLv2+ license info to SPDX tags 3 роки тому
gba.txt fb041f75e5 DSPSpy: save and restore $sr properly 4 роки тому
main_spy.cpp 556d18f865 DSPSpy: Unhide stack registers 2 роки тому
mem_dump.h e149ad4f0a treewide: convert GPLv2+ license info to SPDX tags 3 роки тому
real_dsp.cpp e149ad4f0a treewide: convert GPLv2+ license info to SPDX tags 3 роки тому
real_dsp.h e149ad4f0a treewide: convert GPLv2+ license info to SPDX tags 3 роки тому

README.md

DSPSpy

DSPSpy is a homebrew tool for experimenting with the GameCube/Wii DSP. It can also be used to dump the DSP ROMs.

Building

DSPSpy is built using devkitPPC; see the devkitPro getting started page for more information. DSPSpy also requires DSPTool to be built.

First, run DSPTool to generate dsp_code.h, for instance from tests/dsp_test.ds. The following commands assume an x64 Windows setup running in the DSPSpy directory:

../../Binary/x64/DSPTool.exe -h dsp_code tests/dsp_test.ds

To use the ROM-dumping code, run this:

../../Binary/x64/DSPTool.exe -h dsp_code util/dump_roms.ds

DSPTool can also generate a header for multiple DSP programs at the same time. First, create a file (in this example, it was named file_list.txt) with the following contents:

tests/dsp_test.ds
tests/mul_test.ds
tests/neg_test.ds

Then run:

../../Binary/x64/DSPTool.exe -h dsp_code -m file_list.txt

After dsp_code.h has been generated, simply run make to generate dspspy_wii.dol, which can be loaded by normal means.

Dumping DSP ROMs

Build DSPSpy with util/dump_roms.ds. When launched, DSPSpy will automatically create files dsp_rom.bin and dsp_coef.bin on the SD card (only SD cards are supported); DSPSpy can be exited immediately afterwards.