mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
* implement the last missing instructions. QADD is not good according to ARMWrestler, but it doesn't make sense. TODO: investigate.
* buttons A and B * silence 'unknown IO write' for 3D GPU ports
This commit is contained in:
7
CP15.cpp
7
CP15.cpp
@ -140,6 +140,8 @@ void Write(u32 id, u32 val)
|
||||
|
||||
u32 Read(u32 id)
|
||||
{
|
||||
//printf("CP15 read op %03X %08X\n", id, NDS::ARM9->R[15]);
|
||||
|
||||
switch (id)
|
||||
{
|
||||
case 0x000: // CPU ID
|
||||
@ -150,9 +152,8 @@ u32 Read(u32 id)
|
||||
case 0x007:
|
||||
return 0x41059461;
|
||||
|
||||
case 0x001:
|
||||
// cache type. todo
|
||||
return 0;
|
||||
case 0x001: // cache type
|
||||
return 0x0F0D2112;
|
||||
|
||||
case 0x002: // TCM size
|
||||
return (6 << 6) | (5 << 18);
|
||||
|
Reference in New Issue
Block a user