summaryrefslogtreecommitdiff
path: root/include/gba/syscall.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-05-15 16:43:56 -0700
committerYamaArashi <shadow962@live.com>2016-05-15 16:43:56 -0700
commit147c8672c3be861fa9229c775c37933a39900b9c (patch)
tree9b99fe61d63633717fb2682bcf3eb81442824bad /include/gba/syscall.h
parent91b1aab02668e4671a01854db28e093d9cacc1c8 (diff)
new macros for declaring uninitialized IWRAM data
Diffstat (limited to 'include/gba/syscall.h')
-rw-r--r--include/gba/syscall.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/gba/syscall.h b/include/gba/syscall.h
index 4d69907ee..9b2b81311 100644
--- a/include/gba/syscall.h
+++ b/include/gba/syscall.h
@@ -1,12 +1,26 @@
#ifndef GUARD_GBA_SYSCALL_H
#define GUARD_GBA_SYSCALL_H
+#define RESET_EWRAM 0x01
+#define RESET_IWRAM 0x02
+#define RESET_PALETTE 0x04
+#define RESET_VRAM 0x08
+#define RESET_OAM 0x10
+#define RESET_SIO_REGS 0x20
+#define RESET_SOUND_REGS 0x40
+#define RESET_REGS 0x80
+#define RESET_ALL 0xFF
+
+void SoftReset(u32 resetFlags);
+
+void RegisterRamReset(u32 resetFlags);
+
#define CPU_SET_SRC_FIXED 0x01000000
#define CPU_SET_16BIT 0x00000000
#define CPU_SET_32BIT 0x04000000
-extern void CpuSet(void *src, void *dest, u32 control);
+void CpuSet(void *src, void *dest, u32 control);
-extern void VBlankIntrWait(void);
+void VBlankIntrWait(void);
#endif // GUARD_GBA_SYSCALL_H