summaryrefslogtreecommitdiff
path: root/include/gba/macro.h
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2017-10-27 02:02:36 -0500
committerDiegoisawesome <diego@domoreaweso.me>2017-10-27 02:02:36 -0500
commit49c88e63439a4ca08ca9fac7a85de51d4f56c8bd (patch)
tree69504e13ad956a1596d7f5f188279f0c25ddad55 /include/gba/macro.h
parent431e737453feb99c18349060cad53d551ba41dcf (diff)
parent5ea2f463d71d0bc2663e70a553557de0ccf40eef (diff)
Merge branch 'master' of github.com:pret/pokeemerald into dump_maps
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