summaryrefslogtreecommitdiff
path: root/include/gba/macro.h
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2017-10-22 18:47:06 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2017-10-22 18:47:06 +0200
commitf77dcef59d1b7d84b4e6ae87eaaf7830807bde1c (patch)
tree4f72969d594c374935bcca628397f0e0fefb19b4 /include/gba/macro.h
parentdf4e32a307c17163e9a64e5ea615ab9eb18afc4b (diff)
parent1bab62e1cd127e5e01adf839f1d74c5e59ce16bb (diff)
Merge branch 'master' into decompile_battle_controllers
Diffstat (limited to 'include/gba/macro.h')
-rw-r--r--include/gba/macro.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gba/macro.h b/include/gba/macro.h
index 0217898e8..7b6b98c06 100644
--- a/include/gba/macro.h
+++ b/include/gba/macro.h
@@ -86,4 +86,14 @@
dmaRegs[5]; \
}
+#define IntrEnable(flags) \
+{ \
+ u16 imeTemp; \
+ \
+ imeTemp = REG_IME; \
+ REG_IME = 0; \
+ REG_IE |= flags; \
+ REG_IME = imeTemp; \
+} \
+
#endif // GUARD_GBA_MACRO_H