summaryrefslogtreecommitdiff
path: root/home/text.asm
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-05-04 11:46:23 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-05-04 11:46:23 -0400
commit3713b71d9e3f3f1bc099d4704910cb9c1d172dcf (patch)
tree03069bd1fb4576c16b773b23bab0071aabb7cabd /home/text.asm
parent82f1534925c5fe1f0d876ea88119b0121cfa65a6 (diff)
More splitting of main.asm; remove unneeded rept 2
Diffstat (limited to 'home/text.asm')
-rw-r--r--home/text.asm24
1 files changed, 8 insertions, 16 deletions
diff --git a/home/text.asm b/home/text.asm
index 6b4ce4f78..8632c2c65 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -129,12 +129,10 @@ TextBoxPalette:: ; 1024
; Fill text box width c height b at hl with pal 7
ld de, AttrMap - TileMap
add hl, de
-rept 2
inc b
-endr
-rept 2
+ inc b
+ inc c
inc c
-endr
ld a, TEXTBOX_PAL
.col
push bc
@@ -640,12 +638,10 @@ TextScroll:: ; 138c
dec c
jr nz, .row
-rept 2
inc de
-endr
-rept 2
+ inc de
+ inc hl
inc hl
-endr
pop af
dec a
jr nz, .col
@@ -738,9 +734,8 @@ DoTextUntilTerminator:: ; 13f6
ld c, a
ld b, 0
ld hl, TextCommands
-rept 2
add hl, bc
-endr
+ add hl, bc
ld e, [hl]
inc hl
ld d, [hl]
@@ -1014,9 +1009,8 @@ Text_PlaySound:: ; 1500
jr z, .done
cp b
jr z, .play
-rept 2
inc hl
-endr
+ inc hl
jr .loop
.play
@@ -1113,9 +1107,8 @@ Text_TX_STRINGBUFFER:: ; 156a
ld e, a
ld d, 0
ld hl, StringBufferPointers
-rept 2
add hl, de
-endr
+ add hl, de
ld a, BANK(StringBufferPointers)
call GetFarHalfword
ld d, h
@@ -1136,9 +1129,8 @@ Text_TX_DAY:: ; 1582
ld c, a
ld b, 0
ld hl, .Days
-rept 2
add hl, bc
-endr
+ add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a