separate IO read/write handlers from the rest before it's too late.

remove some useless cruft.
This commit is contained in:
StapleButter 2017-01-17 02:29:25 +01:00
parent 45bceecc19
commit 8ea2aaad5a
4 changed files with 616 additions and 541 deletions

View File

@ -103,7 +103,7 @@ void Write(u32 id, u32 val)
return; return;
case 0x7A1: case 0x7A1:
printf("flush data cache %08X\n", val); //printf("flush data cache %08X\n", val);
return; return;
case 0x7A2: case 0x7A2:
printf("flush data cache SI\n"); printf("flush data cache SI\n");

1137
NDS.cpp

File diff suppressed because it is too large Load Diff

14
NDS.h
View File

@ -117,6 +117,20 @@ void ARM7Write8(u32 addr, u8 val);
void ARM7Write16(u32 addr, u16 val); void ARM7Write16(u32 addr, u16 val);
void ARM7Write32(u32 addr, u32 val); void ARM7Write32(u32 addr, u32 val);
u8 ARM9IORead8(u32 addr);
u16 ARM9IORead16(u32 addr);
u32 ARM9IORead32(u32 addr);
void ARM9IOWrite8(u32 addr, u8 val);
void ARM9IOWrite16(u32 addr, u16 val);
void ARM9IOWrite32(u32 addr, u32 val);
u8 ARM7IORead8(u32 addr);
u16 ARM7IORead16(u32 addr);
u32 ARM7IORead32(u32 addr);
void ARM7IOWrite8(u32 addr, u8 val);
void ARM7IOWrite16(u32 addr, u16 val);
void ARM7IOWrite32(u32 addr, u32 val);
} }
#endif // NDS_H #endif // NDS_H

View File

@ -5,12 +5,12 @@
"NDS.h" "NDS.h"
"GPU2D.h" "GPU2D.h"
1481167101 c:\documents\sources\melonds\nds.h 1484615598 c:\documents\sources\melonds\nds.h
"types.h" "types.h"
1481161027 c:\documents\sources\melonds\types.h 1481161027 c:\documents\sources\melonds\types.h
1484614470 source:c:\documents\sources\melonds\nds.cpp 1484616465 source:c:\documents\sources\melonds\nds.cpp
<stdio.h> <stdio.h>
<string.h> <string.h>
"NDS.h" "NDS.h"