summaryrefslogtreecommitdiff
path: root/asm/macros.inc
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-12-17 23:25:11 -0500
committerGitHub <noreply@github.com>2019-12-17 23:25:11 -0500
commit2f1285e4393deef290790e04cbb8d50b9fd007f5 (patch)
treefa9008354f56ecb3ff48c266dc0474a1c621f6c9 /asm/macros.inc
parentebd3a1371757839c260256e2d8101fc6448b2915 (diff)
parentda93247ea805fa5ade9fe2316dee827553d09e43 (diff)
Merge pull request #174 from garakmon/object_event
Dissassemble Event Object Data
Diffstat (limited to 'asm/macros.inc')
-rw-r--r--asm/macros.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/asm/macros.inc b/asm/macros.inc
index 4eae2cccc..3cc26c6f7 100644
--- a/asm/macros.inc
+++ b/asm/macros.inc
@@ -119,6 +119,12 @@
.fill 4 @ padding
.endm
+ .macro overworld_frame ptr:req, width:req, height:req, frame:req
+ .4byte (\ptr + (\width * \height * \frame * 64) / 2)
+ .2byte (\width * \height * 64) / 2
+ .2byte 0 @ padding
+ .endm
+
.macro credits_entry number, text
.4byte \number
.4byte \text