mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
fix more bugs, get further
This commit is contained in:
@ -243,6 +243,7 @@ void WriteInputFIFO(u32 val)
|
|||||||
{
|
{
|
||||||
Cnt &= ~(1<<31);
|
Cnt &= ~(1<<31);
|
||||||
if (Cnt & (1<<30)) NDS::SetIRQ2(NDS::IRQ2_DSi_AES);
|
if (Cnt & (1<<30)) NDS::SetIRQ2(NDS::IRQ2_DSi_AES);
|
||||||
|
DSi::StopNDMAs(1, 0x2B);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -477,7 +477,7 @@ void DSi_MMCStorage::SendCMD(u8 cmd, u32 param)
|
|||||||
Host->SendResponse(*(u32*)&CID[8], false);
|
Host->SendResponse(*(u32*)&CID[8], false);
|
||||||
Host->SendResponse(*(u32*)&CID[4], false);
|
Host->SendResponse(*(u32*)&CID[4], false);
|
||||||
Host->SendResponse(*(u32*)&CID[0], true);
|
Host->SendResponse(*(u32*)&CID[0], true);
|
||||||
//if (cmd == 2) SetState(0x02);
|
if (cmd == 2) SetState(0x02);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 3: // get/set RCA
|
case 3: // get/set RCA
|
||||||
@ -509,7 +509,7 @@ void DSi_MMCStorage::SendCMD(u8 cmd, u32 param)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case 12: // stop operation
|
case 12: // stop operation
|
||||||
// TODO
|
SetState(0x04);
|
||||||
Host->SendResponse(CSR, true);
|
Host->SendResponse(CSR, true);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -525,6 +525,7 @@ void DSi_MMCStorage::SendCMD(u8 cmd, u32 param)
|
|||||||
printf("!! SD/MMC: BAD BLOCK LEN %d\n", BlockSize);
|
printf("!! SD/MMC: BAD BLOCK LEN %d\n", BlockSize);
|
||||||
BlockSize = 0x200;
|
BlockSize = 0x200;
|
||||||
}
|
}
|
||||||
|
SetState(0x04); // CHECKME
|
||||||
Host->SendResponse(CSR, true);
|
Host->SendResponse(CSR, true);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -535,6 +536,7 @@ void DSi_MMCStorage::SendCMD(u8 cmd, u32 param)
|
|||||||
Host->SendResponse(CSR, true);
|
Host->SendResponse(CSR, true);
|
||||||
ReadBlock(RWAddress);
|
ReadBlock(RWAddress);
|
||||||
RWAddress += BlockSize;
|
RWAddress += BlockSize;
|
||||||
|
SetState(0x05);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 55: // ??
|
case 55: // ??
|
||||||
|
Reference in New Issue
Block a user