fix unlaunch 'battery low' error
settings still don't survive a reset for some reason
This commit is contained in:
parent
964199ab47
commit
d7140543c5
|
@ -79,14 +79,15 @@ void Start()
|
|||
|
||||
u8 Read(bool last)
|
||||
{
|
||||
//printf("BPTWL: read %02X -> %02X @ %08X\n", CurPos, Registers[CurPos], NDS::GetPC(1));
|
||||
u8 ret = Registers[CurPos++];
|
||||
|
||||
if (last)
|
||||
{
|
||||
CurPos = -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
//printf("BPTWL: read %02X -> %02X\n", CurPos, Registers[CurPos]);
|
||||
return Registers[CurPos++];
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Write(u8 val, bool last)
|
||||
|
|
|
@ -464,6 +464,10 @@ u16 DSi_SDHost::Read(u32 addr)
|
|||
case 0x102: return 0;
|
||||
case 0x104: return BlockLen32;
|
||||
case 0x108: return BlockCount32;
|
||||
|
||||
// dunno
|
||||
case 0x106: return 0;
|
||||
case 0x10A: return 0;
|
||||
}
|
||||
|
||||
printf("unknown %s read %08X @ %08X\n", SD_DESC, addr, NDS::GetPC(1));
|
||||
|
@ -626,6 +630,10 @@ void DSi_SDHost::Write(u32 addr, u16 val)
|
|||
case 0x102: return;
|
||||
case 0x104: BlockLen32 = val & 0x03FF; return;
|
||||
case 0x108: BlockCount32 = val; return;
|
||||
|
||||
// dunno
|
||||
case 0x106: return;
|
||||
case 0x10A: return;
|
||||
}
|
||||
|
||||
printf("unknown %s write %08X %04X\n", SD_DESC, addr, val);
|
||||
|
|
Loading…
Reference in New Issue