Beginnings of a new Docs folder - for RE stuff only! Don't go posting leaked things or anything like that here.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@795 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-10-08 17:27:43 +00:00
parent 5f0ea50453
commit e94820ea7d
5 changed files with 932 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
CPU:
---------------------------------------------------------------------------------------
void DSPSendCommands2(_pBuffer, _NumberOfMessages, _StartWork)
{
while (!DSP_Running_Check());
OldInterrupts = OSDisableInterrupts();
if (DSPCheckMailToDSP() != 0)
{
OSRestoreInterrupts();
return -1;
}
DSPSendMailToDSP(_NumberOfMessages)
DSPAssertInt()
while (DSPCheckMailToDSP() != 0) {}
if (_NumberOfMessages == 0)
_NumberOfMessages = 1
if (_StartWork != 0)
{
r28 = DSPStartWork(*_pBuffer, _StartWork)
}
_StartWork = 0
while(Count != _NumberOfMessages)
{
DSPSendMailToDSP(Buffer[Count])
while (DSPCheckMailToDSP() != 0) {}
Count++
}
OSRestoreInterrupts(OldInterrupts)
return r28;
}