2016-05-16 15:48:40 +00:00
|
|
|
|
|
|
|
#ifndef NDS_H
|
|
|
|
#define NDS_H
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
namespace NDS
|
|
|
|
{
|
|
|
|
|
2016-12-03 15:13:04 +00:00
|
|
|
extern u32 ARM9ITCMSize;
|
|
|
|
extern u32 ARM9DTCMBase, ARM9DTCMSize;
|
|
|
|
|
2016-05-16 15:48:40 +00:00
|
|
|
void Init();
|
|
|
|
void Reset();
|
|
|
|
|
2016-11-24 17:31:49 +00:00
|
|
|
void RunFrame();
|
|
|
|
|
|
|
|
void Halt();
|
|
|
|
|
2016-12-03 17:29:19 +00:00
|
|
|
void MapSharedWRAM();
|
|
|
|
|
2016-12-03 00:31:33 +00:00
|
|
|
u8 ARM9Read8(u32 addr);
|
|
|
|
u16 ARM9Read16(u32 addr);
|
2016-11-03 00:38:58 +00:00
|
|
|
u32 ARM9Read32(u32 addr);
|
2016-12-03 00:31:33 +00:00
|
|
|
void ARM9Write8(u32 addr, u8 val);
|
|
|
|
void ARM9Write16(u32 addr, u16 val);
|
|
|
|
void ARM9Write32(u32 addr, u32 val);
|
2016-11-03 00:38:58 +00:00
|
|
|
|
2016-12-03 00:31:33 +00:00
|
|
|
u8 ARM7Read8(u32 addr);
|
|
|
|
u16 ARM7Read16(u32 addr);
|
|
|
|
u32 ARM7Read32(u32 addr);
|
|
|
|
void ARM7Write8(u32 addr, u8 val);
|
|
|
|
void ARM7Write16(u32 addr, u16 val);
|
|
|
|
void ARM7Write32(u32 addr, u32 val);
|
2016-05-16 15:48:40 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // NDS_H
|