summaryrefslogtreecommitdiff
path: root/home/util.asm
diff options
context:
space:
mode:
authorISSOtm <eldredhabert0@gmail.com>2018-06-03 04:52:18 +0200
committerISSOtm <eldredhabert0@gmail.com>2018-06-03 04:52:18 +0200
commitbbdc4926b3ca23e6e9332c2883ea37da1be30a79 (patch)
tree4166ab85fc33b17db5d10f9828094b0a5614aa34 /home/util.asm
parent65f85a7bd0f04ad83904a988a6071306888e84ff (diff)
parente51ea1412c8be994b713f9748d78ac7efb347c43 (diff)
Merge branch 'master' of https://github.com/pret/pokegold-spaceworld
Diffstat (limited to 'home/util.asm')
-rw-r--r--home/util.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/home/util.asm b/home/util.asm
new file mode 100644
index 0000000..bfc4ce4
--- /dev/null
+++ b/home/util.asm
@@ -0,0 +1,13 @@
+INCLUDE "constants.asm"
+
+SECTION "Misc Utility Functions", ROM0[$3429]
+
+AddNTimes:: ; 3429 (0:3429)
+ and a
+ ret z
+.asm_342b
+ add hl, bc
+ dec a
+ jr nz, .asm_342b
+ ret
+; 0x3430 \ No newline at end of file