diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2015-07-25 14:25:37 -0400 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2015-07-25 19:02:36 -0400 |
commit | 6c3000efd2818f8d5cb0a01770d1b92991b80340 (patch) | |
tree | 38d458d3ff19039cd865998bb122666b943e91d6 /home/math.asm | |
parent | 432df825d4039a44a49fff01ef843395ab5abb3d (diff) |
Macro update, roam mon annotations
Updated map and mapgroup macros to get around an rgbds bug.
Legendary beast locale handling annotated and relabeled.
Added a new constant NUM_ENGINE_FLAGS for use in the EngineFlagAction function. This will make it easier for modders to add or remove engine flags.
Diffstat (limited to 'home/math.asm')
-rw-r--r-- | home/math.asm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/home/math.asm b/home/math.asm index 8e19e0412..c320fd15c 100644 --- a/home/math.asm +++ b/home/math.asm @@ -1,3 +1,14 @@ +AddNTimes:: ; 0x30fe +; Add bc * a to hl. + and a + ret z +.loop + add hl, bc + dec a + jr nz, .loop + ret +; 0x3105 + SimpleMultiply:: ; 3105 ; Return a * c. and a |