diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-07-05 20:53:40 -0500 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2018-07-05 19:12:20 -0700 |
commit | 99c98097753008b1f824a676b36f34ac2857effe (patch) | |
tree | cff85e4c569e337f087d62314122209929195d92 /include/util.h | |
parent | c63e00f47a5d3388a149fdbd8b6cbd8c138e8494 (diff) |
Decompile battle_anim_813F0f4.s
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index 02c503f75..1a3bd5f1a 100644 --- a/include/util.h +++ b/include/util.h @@ -3,6 +3,12 @@ #include "sprite.h" +//Extracts the upper 16 bits of a 32-bit number +#define HIHALF(n) (((n) & 0xFFFF0000) >> 16) + +//Extracts the lower 16 bits of a 32-bit number +#define LOHALF(n) ((n) & 0xFFFF) + extern const u8 gMiscBlank_Gfx[]; extern const u32 gBitTable[]; |