summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2018-07-26 21:25:12 -0400
committerGitHub <noreply@github.com>2018-07-26 21:25:12 -0400
commit748d4249805c19399b3c72c0f60d0f1a6ffe43ad (patch)
tree4c6bf942372fda10691e4ca3d0d74490f561a982 /home.asm
parent60ffde3752d079d557dab9a8acecb0bc9e5d46aa (diff)
parent9a1ae1332cd98abd65c2f26a1ae4d65c6450530a (diff)
Merge pull request #544 from Rangi42/master
Various fixes found while writing tutorials
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm51
1 files changed, 2 insertions, 49 deletions
diff --git a/home.asm b/home.asm
index 8f68511b4..27587d511 100644
--- a/home.asm
+++ b/home.asm
@@ -162,55 +162,8 @@ CallPointerAt::
rst Bankswitch
ret
-QueueScript::
-; Push pointer hl in the current bank to wQueuedScriptBank.
- ld a, [hROMBank]
-
-FarQueueScript::
-; Push pointer a:hl to wQueuedScriptBank.
- ld [wQueuedScriptBank], a
- ld a, l
- ld [wQueuedScriptAddr], a
- ld a, h
- ld [wQueuedScriptAddr + 1], a
- ret
-
-StringCmp::
-; Compare c bytes at de and hl.
-; Return z if they all match.
-.loop
- ld a, [de]
- cp [hl]
- ret nz
- inc de
- inc hl
- dec c
- jr nz, .loop
- ret
-
-CompareLong::
-; Compare bc bytes at de and hl.
-; Return carry if they all match.
-
- ld a, [de]
- cp [hl]
- jr nz, .Diff
-
- inc de
- inc hl
- dec bc
-
- ld a, b
- or c
- jr nz, CompareLong
-
- scf
- ret
-
-.Diff:
- and a
- ret
-
+INCLUDE "home/queue_script.asm"
+INCLUDE "home/compare.asm"
INCLUDE "home/tilemap.asm"
INCLUDE "home/hp_pals.asm"