From 99c98097753008b1f824a676b36f34ac2857effe Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 5 Jul 2018 20:53:40 -0500 Subject: Decompile battle_anim_813F0f4.s --- include/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/util.h') 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[]; -- cgit v1.2.3