'rept' is not indented

This commit is contained in:
Rangi 2018-05-06 12:16:57 -04:00
parent d31ba05aeb
commit 1c92cb8b48
9 changed files with 23 additions and 23 deletions

View File

@ -12,7 +12,7 @@ else
x = 2 * (\1 - "A") x = 2 * (\1 - "A")
endc endc
db x db x
shift shift
endr endr
db -1 ; end db -1 ; end
ENDM ENDM

View File

@ -13,7 +13,7 @@
partymenuqualities: MACRO partymenuqualities: MACRO
rept _NARG rept _NARG
db PARTYMENUQUALITY_\1 db PARTYMENUQUALITY_\1
shift shift
endr endr
db -1 ; end db -1 ; end
ENDM ENDM

View File

@ -1,9 +1,9 @@
unownword: MACRO unownword: MACRO
x = 1 x = 1
rept STRLEN(\1) rept STRLEN(\1)
db STRSUB(\1, x, 1) - $40 db STRSUB(\1, x, 1) - $40
x = x + 1 x = x + 1
endr endr
db -1 db -1
ENDM ENDM

View File

@ -2404,10 +2404,10 @@ GetFailureResultText: ; 350e4
ld hl, wCurDamage ld hl, wCurDamage
ld a, [hli] ld a, [hli]
ld b, [hl] ld b, [hl]
rept 3 rept 3
srl a srl a
rr b rr b
endr endr
ld [hl], b ld [hl], b
dec hl dec hl
ld [hli], a ld [hli], a

View File

@ -53,14 +53,14 @@ AnimateMon_Unused: ; d003a
; d0042 ; d0042
pokeanim: MACRO pokeanim: MACRO
rept _NARG rept _NARG
; Workaround for a bug where macro args can't come after the start of a symbol ; Workaround for a bug where macro args can't come after the start of a symbol
if !DEF(\1_POKEANIM) if !DEF(\1_POKEANIM)
\1_POKEANIM EQUS "PokeAnim_\1_" \1_POKEANIM EQUS "PokeAnim_\1_"
endc endc
db (\1_POKEANIM - PokeAnim_SetupCommands) / 2 db (\1_POKEANIM - PokeAnim_SetupCommands) / 2
shift shift
endr endr
db (PokeAnim_Finish_ - PokeAnim_SetupCommands) / 2 db (PokeAnim_Finish_ - PokeAnim_SetupCommands) / 2
ENDM ENDM

View File

@ -806,10 +806,10 @@ HeavyBallMultiplier:
ld b, h ld b, h
ld c, l ld c, l
rept 4 rept 4
srl b srl b
rr c rr c
endr endr
call .subbc call .subbc
srl b srl b
@ -2529,9 +2529,9 @@ BattleRestorePP: ; f652
push hl push hl
push de push de
push bc push bc
rept NUM_MOVES + 2 ; wBattleMonPP - wBattleMonMoves rept NUM_MOVES + 2 ; wBattleMonPP - wBattleMonMoves
inc de inc de
endr endr
ld bc, MON_PP - MON_MOVES ld bc, MON_PP - MON_MOVES
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]

View File

@ -115,20 +115,20 @@ GeneratePartyMonStats: ; d906
and a and a
jr nz, .randomlygeneratemoves jr nz, .randomlygeneratemoves
ld de, wEnemyMonMoves ld de, wEnemyMonMoves
rept NUM_MOVES + -1 rept NUM_MOVES + -1
ld a, [de] ld a, [de]
inc de inc de
ld [hli], a ld [hli], a
endr endr
ld a, [de] ld a, [de]
ld [hl], a ld [hl], a
jr .next jr .next
.randomlygeneratemoves .randomlygeneratemoves
xor a xor a
rept NUM_MOVES + -1 rept NUM_MOVES + -1
ld [hli], a ld [hli], a
endr endr
ld [hl], a ld [hl], a
ld [wBuffer1], a ld [wBuffer1], a
predef FillMoves predef FillMoves
@ -220,7 +220,7 @@ endr
call FillPP call FillPP
pop de pop de
pop hl pop hl
rept 4 rept NUM_MOVES
inc de inc de
endr endr

View File

@ -26,11 +26,11 @@ ENDM
dwcoord: MACRO dwcoord: MACRO
; x, y ; x, y
rept _NARG / 2 rept _NARG / 2
dw (\2) * SCREEN_WIDTH + (\1) + wTileMap dw (\2) * SCREEN_WIDTH + (\1) + wTileMap
shift shift
shift shift
endr endr
ENDM ENDM
ldcoord_a: MACRO ldcoord_a: MACRO

View File

@ -1651,17 +1651,17 @@ Function17da31: ; 17da31
Unknown_17da8c: Unknown_17da8c:
x = 0 x = 0
rept 8 rept 8
db 1 << x db 1 << x
x = x + 1 x = x + 1
endr endr
Unknown_17da94: Unknown_17da94:
x = 0 x = 0
rept 8 rept 8
db (1 << x) ^ $ff db (1 << x) ^ $ff
x = x + 1 x = x + 1
endr endr
; 17da9c ; 17da9c
Function17da9c: ; 17da9c Function17da9c: ; 17da9c