summaryrefslogtreecommitdiff
path: root/include/nitro/consts_shared.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-06-06 10:17:48 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-06-06 10:17:48 -0400
commit287997378d2531af6c610721f2be2424ca4cbfa3 (patch)
treea52d852aeac6ea91103dc5b4ce9dad2fee375bc6 /include/nitro/consts_shared.h
parent3e3328342369ac8143a442c5b85ad56ce587b195 (diff)
parentcae6ef601c8d2892c078eb77327e4552f3c8bf64 (diff)
Merge branch 'master' of https://github.com/martmists/pokediamond into pikalax_work
Diffstat (limited to 'include/nitro/consts_shared.h')
-rw-r--r--include/nitro/consts_shared.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/nitro/consts_shared.h b/include/nitro/consts_shared.h
new file mode 100644
index 00000000..e515831e
--- /dev/null
+++ b/include/nitro/consts_shared.h
@@ -0,0 +1,26 @@
+/*
+ * NOTE:
+ * This file is shared between ARM9 and ARM7
+ * DO NOT PUT PROC SPECIFIC CODE IN HERE
+ * Thank You!
+ */
+
+/*
+ * DO NOT INCLUDE THIS FILE DIRECTLY
+ * Include consts.h from the specific proc's lib
+ */
+
+#ifndef POKEDIAMOND_CONSTS_SHARED_H
+#define POKEDIAMOND_CONSTS_SHARED_H
+
+#include "nitro/types.h"
+
+//Shared Consts
+
+#define HW_PSR_CPU_MODE_MASK 0x1f // CPU mode
+
+#define HW_PSR_DISABLE_FIQ 0x40 // Disable FIQ
+#define HW_PSR_DISABLE_IRQ 0x80 // Disable IRQ
+#define HW_PSR_DISABLE_IRQ_FIQ 0xc0 // Disable FIQ and IRQ
+
+#endif //POKEDIAMOND_CONSTS_SHARED_H