aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/NDS.h')
-rw-r--r--src/NDS.h31
1 files changed, 4 insertions, 27 deletions
diff --git a/src/NDS.h b/src/NDS.h
index 4fec117..480341f 100644
--- a/src/NDS.h
+++ b/src/NDS.h
@@ -24,30 +24,12 @@
namespace NDS
{
-/*#define SCHED_BUF_LEN 64
-
-typedef struct _SchedEvent
-{
- u32 Delay;
- void (*Func)(u32);
- u32 Param;
- struct _SchedEvent* PrevEvent;
- struct _SchedEvent* NextEvent;
-
-} SchedEvent;*/
-
enum
{
Event_LCD = 0,
+ Event_SPU,
- /*Event_Timer9_0,
- Event_Timer9_1,
- Event_Timer9_2,
- Event_Timer9_3,
- Event_Timer7_0,
- Event_Timer7_1,
- Event_Timer7_2,
- Event_Timer7_3,*/
+ Event_ROMTransfer,
Event_MAX
};
@@ -95,7 +77,6 @@ typedef struct
u16 Cnt;
u32 Counter;
u32 CycleShift;
- //SchedEvent* Event;
} Timer;
@@ -112,6 +93,8 @@ extern u8 ROMSeed1[2*8];
extern u8 ARM9BIOS[0x1000];
extern u8 ARM7BIOS[0x4000];
+extern u8 MainRAM[0x400000];
+
bool Init();
void DeInit();
void Reset();
@@ -127,15 +110,9 @@ void ReleaseKey(u32 key);
void TouchScreen(u16 x, u16 y);
void ReleaseScreen();
-/*SchedEvent* ScheduleEvent(s32 Delay, void (*Func)(u32), u32 Param);
-void CancelEvent(SchedEvent* event);
-void RunEvents(s32 cycles);*/
void ScheduleEvent(u32 id, bool periodic, s32 delay, void (*func)(u32), u32 param);
void CancelEvent(u32 id);
-// DO NOT CALL FROM ARM7!!
-void CompensateARM7();
-
void debug(u32 p);
void Halt();