X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdsp.cpp;h=53a7d0889f9c6fbd76f6b208d1c4b6a591b8b0d4;hb=5d76d651dfc3aa0a2e810e6b6db2ae8a2e34c53e;hp=6e6902c3e2bf0221c86c787fb684ade650773afa;hpb=9d399cea8466c7e4a6a1336dafdc830c4680d977;p=virtualjaguar diff --git a/src/dsp.cpp b/src/dsp.cpp index 6e6902c..53a7d08 100644 --- a/src/dsp.cpp +++ b/src/dsp.cpp @@ -18,7 +18,6 @@ #include // Used only for SDL_GetTicks... #include -#include #include "dac.h" #include "gpu.h" #include "jagdasm.h" @@ -1279,7 +1278,6 @@ void DSPInit(void) dsp_build_branch_condition_table(); DSPReset(); - srand(time(NULL)); // For randomizing local RAM } void DSPReset(void) @@ -1306,12 +1304,10 @@ void DSPReset(void) IMASKCleared = false; FlushDSPPipeline(); dsp_reset_stats(); -// memset(dsp_ram_8, 0xFF, 0x2000); + // Contents of local RAM are quasi-stable; we simulate this by randomizing RAM contents for(uint32_t i=0; i<8192; i+=4) - { *((uint32_t *)(&dsp_ram_8[i])) = rand(); - } } void DSPDumpDisassembly(void)