devkitPro / libogc

C Library for Wii and Gamecube homebrew
https://devkitpro.org/viewforum.php?f=40
Other
283 stars 69 forks source link

aesnd: fix AESND_Reset. free voices & fix cmpi of unsigned short. #143

Closed DacoTaco closed 1 year ago

DacoTaco commented 1 year ago

courtesy to Extrems & @muff1n1634 for providing the fix tested with AESNDResetFix.zip

Pokechu22 commented 10 months ago

For my own future reference, the pre-compiled template.dol and template.elf in AESNDResetFix.zip does not work correctly, as the ucode included with it uses 0049 009f dead lri $AC1.M, #0xdead (clobbering the value to be compared, and leaving 0xface in $AC0.M from the earlier comparison) instead of 0049 009e dead lri $AC0.M, #0xdead. This does not affect the ucode included in libogc so re-compiling it gives the proper result.

The broken version has the following hashes:

Hashes of DSP_UC_802e5e41.bin: ector 802e5e41 crc 7380067f adler 311f2d5f 03e8 bytes (01f4 words)

The correct version has the following hashes:

Hashes of DSP_UC_002e5e41.bin: ector 002e5e41 crc 5ba4fb19 adler 2dca2d5e 03e8 bytes (01f4 words)
DacoTaco commented 10 months ago

@Pokechu22 : ah, my mistake. i shouldn't have included the dol/elf's lol