aboutsummaryrefslogtreecommitdiff
path: root/src/SPI.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2022-03-14 00:27:03 +0100
committerArisotura <thetotalworm@gmail.com>2022-03-14 00:27:03 +0100
commitfb7bea06f80c78047b61667667551f0726bc38d6 (patch)
treef128de36d3bb39d7edc7d741f38c105ef788b688 /src/SPI.cpp
parent89d33fedd29636dc5bbf374ecf6aa4978022a578 (diff)
fix some gaps in the SPI/cart implementations
Diffstat (limited to 'src/SPI.cpp')
-rw-r--r--src/SPI.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SPI.cpp b/src/SPI.cpp
index a2c4538..f46e68e 100644
--- a/src/SPI.cpp
+++ b/src/SPI.cpp
@@ -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)