summaryrefslogtreecommitdiff
path: root/home/util.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/util.asm')
-rw-r--r--home/util.asm30
1 files changed, 15 insertions, 15 deletions
diff --git a/home/util.asm b/home/util.asm
index 81435c2..410a331 100644
--- a/home/util.asm
+++ b/home/util.asm
@@ -51,14 +51,14 @@ Function33ef::
SkipNames::
; Returns hl + a * 6
- and a
- ret z
- ld bc, 6
+ and a
+ ret z
+ ld bc, 6
.loop:
- add hl, bc
- dec a
- jr nz, .loop
- ret
+ add hl, bc
+ dec a
+ jr nz, .loop
+ ret
AddNTimes::
; Adds bc to hl, a times
@@ -75,14 +75,14 @@ memcmp:: ; TODO: rename
; Compare c bytes at hl and de
; Returns z if all equal, nz otherwise.
.loop:
- ld a, [de]
- cp [hl]
- ret nz
- inc de
- inc hl
- dec c
- jr nz, .loop
- ret
+ ld a, [de]
+ cp [hl]
+ ret nz
+ inc de
+ inc hl
+ dec c
+ jr nz, .loop
+ ret
Function3439::
; Place 2x2 sprite from *de into OAM at slot a