summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-10-12 12:33:24 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2015-10-12 12:33:24 -0400
commit0c39f6e273910be3b0ed9317e73c40615d789ae3 (patch)
treedb7c0a163576f23a6387f6b66db60711ede03d97 /macros.asm
parent327faac497b4195dbf1d3c8dbfeb2adcda9deb27 (diff)
Happiness and Mystery Gift constants
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 4370886b2..ca62491eb 100644
--- a/macros.asm
+++ b/macros.asm
@@ -149,3 +149,15 @@ bcd: MACRO
shift
endr
ENDM
+
+ln: MACRO
+ if _NARG == 5
+ lb \1, \2 << 4 + \3, \4 << 4 + \5
+ else
+ if _NARG == 3
+ ld \1, \2 << 4 + \3
+ else
+ fail "incorrect number of arguments for ln"
+ endc
+ endc
+ENDM