aboutsummaryrefslogtreecommitdiff
path: root/NDS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NDS.cpp')
-rw-r--r--NDS.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/NDS.cpp b/NDS.cpp
new file mode 100644
index 0000000..f992297
--- /dev/null
+++ b/NDS.cpp
@@ -0,0 +1,42 @@
+#include <stdio.h>
+#include "NDS.h"
+
+
+namespace NDS
+{
+
+//
+
+
+void Init()
+{
+ Reset();
+}
+
+void Reset()
+{
+ FILE* f;
+
+ f = fopen("bios9.bin", "rb");
+ if (!f)
+ printf("ARM9 BIOS not found\n");
+ else
+ {
+ // load BIOS here
+
+ fclose(f);
+ }
+}
+
+
+template<typename T> T Read(u32 addr)
+{
+ return (T)0;
+}
+
+template<typename T> void Write(u32 addr, T val)
+{
+ //
+}
+
+}