diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-12-24 13:08:46 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-12-24 13:08:46 +0100 |
commit | 5025e9a989fde4c36114ba2f19c3bbc820a2b9ad (patch) | |
tree | 7f420794666de76305a6d1b1bb7ed1825c558a34 | |
parent | d6b0ff1edafad90cf1d7043e85e957c8dbf19e83 (diff) |
clean up some things
-rw-r--r-- | src/DSi_Camera.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/DSi_Camera.cpp b/src/DSi_Camera.cpp index 79cfe3f..cfb3b8d 100644 --- a/src/DSi_Camera.cpp +++ b/src/DSi_Camera.cpp @@ -303,7 +303,7 @@ u8 DSi_Camera::Read8(u32 addr) } u16 DSi_Camera::Read16(u32 addr) -{printf("CAM READ %08X %08X\n", addr, NDS::GetPC(0)); +{ switch (addr) { case 0x04004200: return ModuleCnt; @@ -313,15 +313,16 @@ u16 DSi_Camera::Read16(u32 addr) printf("unknown DSi cam read16 %08X\n", addr); return 0; } -u32 dorp = 0; + u32 DSi_Camera::Read32(u32 addr) { switch (addr) { case 0x04004204: { + // TODO return 0xFC00801F; - if (!(Cnt & (1<<15))) return 0; // CHECKME + /*if (!(Cnt & (1<<15))) return 0; // CHECKME u32 ret = *(u32*)&FrameBuffer[TransferPos]; TransferPos += 4; if (TransferPos >= FrameLength) TransferPos = 0; @@ -332,7 +333,7 @@ u32 DSi_Camera::Read32(u32 addr) dorp = 0; Cnt &= ~(1<<4); } - return ret; + return ret;*/ } } @@ -348,7 +349,7 @@ void DSi_Camera::Write8(u32 addr, u8 val) } void DSi_Camera::Write16(u32 addr, u16 val) -{printf("CAM WRITE %08X %04X %08X\n", addr, val, NDS::GetPC(0)); +{ switch (addr) { case 0x04004200: |