mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 07:39:56 -06:00
fix some gaps in the SPI/cart implementations
This commit is contained in:
@ -896,6 +896,8 @@ void WriteCnt(u16 val)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: presumably the transfer speed can be changed during a transfer
|
||||
// like with the NDSCart SPI interface
|
||||
Cnt = (Cnt & 0x0080) | (val & 0xCF03);
|
||||
if (val & 0x0400) printf("!! CRAPOED 16BIT SPI MODE\n");
|
||||
if (Cnt & (1<<7)) printf("!! CHANGING SPICNT DURING TRANSFER: %04X\n", val);
|
||||
@ -930,8 +932,7 @@ u8 ReadData()
|
||||
void WriteData(u8 val)
|
||||
{
|
||||
if (!(Cnt & (1<<15))) return;
|
||||
|
||||
if (Cnt & (1<<7)) printf("!! WRITING AUXSPIDATA DURING PENDING TRANSFER\n");
|
||||
if (Cnt & (1<<7)) return;
|
||||
|
||||
Cnt |= (1<<7);
|
||||
switch (Cnt & 0x0300)
|
||||
|
Reference in New Issue
Block a user