diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-10-21 22:46:01 -0400 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-10-21 22:46:01 -0400 |
commit | 821f1a6f4feb9e5088c18cda6bea6c9b3872b3e8 (patch) | |
tree | b498dfc4b5c0dce2882f4bde47d7bacb9300d59c /include/gba/macro.h | |
parent | ae53458622db5321f10092fe1585474813b0edcd (diff) | |
parent | b8f23aa20d40e20c4d3e050ef3011cca22998646 (diff) |
Merge branch 'master' of https://github.com/pret/pokeemerald into clear_save_data_screen
Diffstat (limited to 'include/gba/macro.h')
-rw-r--r-- | include/gba/macro.h | 10 |
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 |