mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
Cart refactor (#1073)
complete cart-interface refactor, will make this code a lot easier to deal with
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user