Use rgbds 0.5.0

This commit is contained in:
Rangi
2021-04-19 16:31:37 -04:00
parent 3521923096
commit 316fa4b695
28 changed files with 148 additions and 280 deletions

View File

@@ -386,11 +386,9 @@ ValidateBTParty: ; unreferenced
ld c, l
ld a, [hl]
and a
x = $ff
rept $ff - NUM_POKEMON
for x, $ff, NUM_POKEMON, -1
jr z, .invalid
cp x
x = x - 1
endr
jr nz, .valid

View File

@@ -43,10 +43,8 @@ BuenasPassword:
.PasswordIndices:
db NUM_PASSWORDS_PER_CATEGORY
x = 0
rept NUM_PASSWORDS_PER_CATEGORY
for x, NUM_PASSWORDS_PER_CATEGORY
db x
x = x + 1
endr
db -1
@@ -264,10 +262,8 @@ Buena_PrizeMenu:
.Prizes:
db NUM_BUENA_PRIZES
x = 1
rept NUM_BUENA_PRIZES
db x
x = x + 1
for x, NUM_BUENA_PRIZES
db x + 1
endr
db -1

View File

@@ -95,17 +95,9 @@ RotateUnownFrontpic:
jr nz, .loop_count
ret
gbprinterrect: MACRO
y = 0
rept \1
x = \1 * (\2 - 1) + y
rept \2
dw wGameboyPrinter2bppSource tile x
x = x - \2
endr
y = y + 1
endr
ENDM
UnownPrinter_GBPrinterRectangle:
gbprinterrect 7, 7
for y, 7
for x, 7 - 1, -1, -1
dw wGameboyPrinter2bppSource tile (x * 7 + y)
endr
endr