ref: 1c92cb8b48b96d861ceb2d14dfbf775223006edf
parent: d31ba05aebed61b499e242f133cfbd4095eee09e
author: Rangi <[email protected]>
date: Sun May 6 08:16:57 EDT 2018
'rept' is not indented
--- a/data/events/unown_walls.asm
+++ b/data/events/unown_walls.asm
@@ -12,7 +12,7 @@
x = 2 * (\1 - "A")
endc
db x
-shift
+ shift
endr
db -1 ; end
ENDM
--- a/data/party_menu_qualities.asm
+++ b/data/party_menu_qualities.asm
@@ -13,7 +13,7 @@
partymenuqualities: MACRO
rept _NARG
db PARTYMENUQUALITY_\1
-shift
+ shift
endr
db -1 ; end
ENDM
--- a/data/pokemon/unown_words.asm
+++ b/data/pokemon/unown_words.asm
@@ -1,9 +1,9 @@
unownword: MACRO
x = 1
- rept STRLEN(\1)
+rept STRLEN(\1)
db STRSUB(\1, x, 1) - $40
x = x + 1
- endr
+endr
db -1
ENDM
--- a/engine/battle/effect_commands.asm
+++ b/engine/battle/effect_commands.asm
@@ -2404,10 +2404,10 @@
ld hl, wCurDamage
ld a, [hli]
ld b, [hl]
- rept 3
+rept 3
srl a
rr b
- endr
+endr
ld [hl], b
dec hl
ld [hli], a
--- a/engine/gfx/pic_animation.asm
+++ b/engine/gfx/pic_animation.asm
@@ -53,7 +53,7 @@
; d0042
pokeanim: MACRO
- rept _NARG
+rept _NARG
; Workaround for a bug where macro args can't come after the start of a symbol
if !DEF(\1_POKEANIM)
\1_POKEANIM EQUS "PokeAnim_\1_"
@@ -60,7 +60,7 @@
endc
db (\1_POKEANIM - PokeAnim_SetupCommands) / 2
shift
- endr
+endr
db (PokeAnim_Finish_ - PokeAnim_SetupCommands) / 2
ENDM
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -806,10 +806,10 @@
ld b, h
ld c, l
- rept 4
+rept 4
srl b
rr c
- endr
+endr
call .subbc
srl b
@@ -2529,9 +2529,9 @@
push hl
push de
push bc
- rept NUM_MOVES + 2 ; wBattleMonPP - wBattleMonMoves
+rept NUM_MOVES + 2 ; wBattleMonPP - wBattleMonMoves
inc de
- endr
+endr
ld bc, MON_PP - MON_MOVES
add hl, bc
ld a, [hl]
--- a/engine/pokemon/move_mon.asm
+++ b/engine/pokemon/move_mon.asm
@@ -115,11 +115,11 @@
and a
jr nz, .randomlygeneratemoves
ld de, wEnemyMonMoves
- rept NUM_MOVES + -1
+rept NUM_MOVES + -1
ld a, [de]
inc de
ld [hli], a
- endr
+endr
ld a, [de]
ld [hl], a
jr .next
@@ -126,9 +126,9 @@
.randomlygeneratemoves
xor a
- rept NUM_MOVES + -1
+rept NUM_MOVES + -1
ld [hli], a
- endr
+endr
ld [hl], a
ld [wBuffer1], a
predef FillMoves
@@ -220,7 +220,7 @@
call FillPP
pop de
pop hl
-rept 4
+rept NUM_MOVES
inc de
endr
--- a/macros/coords.asm
+++ b/macros/coords.asm
@@ -26,11 +26,11 @@
dwcoord: MACRO
; x, y
- rept _NARG / 2
+rept _NARG / 2
dw (\2) * SCREEN_WIDTH + (\1) + wTileMap
shift
shift
- endr
+endr
ENDM
ldcoord_a: MACRO
--- a/mobile/mobile_5f.asm
+++ b/mobile/mobile_5f.asm
@@ -1651,17 +1651,17 @@
Unknown_17da8c:
x = 0
- rept 8
+rept 8
db 1 << x
x = x + 1
- endr
+endr
Unknown_17da94:
x = 0
- rept 8
+rept 8
db (1 << x) ^ $ff
x = x + 1
- endr
+endr
; 17da9c
Function17da9c: ; 17da9c