aboutsummaryrefslogtreecommitdiffstats
path: root/engine/movie
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-07 15:09:54 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-07 16:21:26 -0400
commit4a7d1513f3135a3c926233d47921b21bf8b1fab4 (patch)
tree22e14964dcd2e6dae66de392c32caf33e70c964b /engine/movie
parentNames for more SECTIONs (diff)
downloadpokeyellow-4a7d1513f3135a3c926233d47921b21bf8b1fab4.tar.gz
pokeyellow-4a7d1513f3135a3c926233d47921b21bf8b1fab4.tar.xz
pokeyellow-4a7d1513f3135a3c926233d47921b21bf8b1fab4.zip
Use 'tile' and 'tiles' macros
Diffstat (limited to 'engine/movie')
-rwxr-xr-xengine/movie/credits.asm14
-rwxr-xr-xengine/movie/gamefreak.asm14
-rwxr-xr-xengine/movie/title.asm18
-rwxr-xr-xengine/movie/trade.asm4
4 files changed, 25 insertions, 25 deletions
diff --git a/engine/movie/credits.asm b/engine/movie/credits.asm
index ae35a2b7..6fb0598e 100755
--- a/engine/movie/credits.asm
+++ b/engine/movie/credits.asm
@@ -5,14 +5,14 @@ HallOfFamePC:
call DelayFrames
call DisableLCD
ld hl, vFont
- ld bc, $800 / 2
+ ld bc, ($80 tiles) / 2
call ZeroMemory
- ld hl, vChars2 + $600
- ld bc, $200 / 2
+ ld hl, vChars2 tile $60
+ ld bc, ($20 tiles) / 2
call ZeroMemory
- ld hl, vChars2 + $7e0
- ld bc, $10
- ld a, $ff
+ ld hl, vChars2 tile $7e
+ ld bc, 1 tiles
+ ld a, $ff ; solid black
call FillMemory
hlcoord 0, 0
call FillFourRowsWithBlack
@@ -245,7 +245,7 @@ Credits:
call FillMiddleOfScreenWithWhite
pop de
ld de, TheEndGfx
- ld hl, vChars2 + $600
+ ld hl, vChars2 tile $60
lb bc, BANK(TheEndGfx), (TheEndGfxEnd - TheEndGfx) / $10
call CopyVideoData
hlcoord 4, 8
diff --git a/engine/movie/gamefreak.asm b/engine/movie/gamefreak.asm
index d3b5eb88..1463eb4f 100755
--- a/engine/movie/gamefreak.asm
+++ b/engine/movie/gamefreak.asm
@@ -3,16 +3,16 @@ LoadShootingStarGraphics:
ldh [rOBP0], a
ld a, $a4
ldh [rOBP1], a
- ld de, AnimationTileset2 + $30 ; star tile (top left quadrant)
- ld hl, vChars1 + $200
- lb bc, BANK(AnimationTileset2), $01
+ ld de, AnimationTileset2 tile 3 ; star tile (top left quadrant)
+ ld hl, vChars1 tile $20
+ lb bc, BANK(AnimationTileset2), 1
call CopyVideoData
- ld de, AnimationTileset2 + $130 ; star tile (bottom left quadrant)
- ld hl, vChars1 + $210
- lb bc, BANK(AnimationTileset2), $01
+ ld de, AnimationTileset2 tile 19 ; star tile (bottom left quadrant)
+ ld hl, vChars1 tile $21
+ lb bc, BANK(AnimationTileset2), 1
call CopyVideoData
ld de, FallingStar
- ld hl, vChars1 + $220
+ ld hl, vChars1 tile $22
lb bc, BANK(FallingStar), (FallingStarEnd - FallingStar) / $10
call CopyVideoData
ld hl, GameFreakLogoOAMData
diff --git a/engine/movie/title.asm b/engine/movie/title.asm
index 69838afb..bdb24d6a 100755
--- a/engine/movie/title.asm
+++ b/engine/movie/title.asm
@@ -36,27 +36,27 @@ DisplayTitleScreen:
call DisableLCD
call LoadFontTilePatterns
ld hl, NintendoCopyrightLogoGraphics
- ld de, vTitleLogo2 + $100
- ld bc, $50
+ ld de, vTitleLogo2 tile 16
+ ld bc, 5 tiles
ld a, BANK(NintendoCopyrightLogoGraphics)
call FarCopyData2
ld hl, GamefreakLogoGraphics
- ld de, vTitleLogo2 + $100 + $50
- ld bc, $90
+ ld de, vTitleLogo2 tile (16 + 5)
+ ld bc, 9 tiles
ld a, BANK(GamefreakLogoGraphics)
call FarCopyData2
ld hl, PokemonLogoGraphics
ld de, vTitleLogo
- ld bc, $600
+ ld bc, $60 tiles
ld a, BANK(PokemonLogoGraphics)
call FarCopyData2 ; first chunk
- ld hl, PokemonLogoGraphics+$600
+ ld hl, PokemonLogoGraphics tile $60
ld de, vTitleLogo2
- ld bc, $100
+ ld bc, $10 tiles
ld a, BANK(PokemonLogoGraphics)
call FarCopyData2 ; second chunk
ld hl, Version_GFX
- ld de, vChars2 + $600 - (Version_GFXEnd - Version_GFX - $50)
+ ld de, vChars2 tile $60 + (10 tiles - (Version_GFXEnd - Version_GFX) * 2) / 2
ld bc, Version_GFXEnd - Version_GFX
ld a, BANK(Version_GFX)
call FarCopyDataDouble
@@ -369,7 +369,7 @@ LoadCopyrightAndTextBoxTiles:
LoadCopyrightTiles:
ld de, NintendoCopyrightLogoGraphics
- ld hl, vChars2 + $600
+ ld hl, vChars2 tile $60
lb bc, BANK(NintendoCopyrightLogoGraphics), (GamefreakLogoGraphicsEnd - NintendoCopyrightLogoGraphics) / $10
call CopyVideoData
hlcoord 2, 7
diff --git a/engine/movie/trade.asm b/engine/movie/trade.asm
index 3883c362..fc2da9bd 100755
--- a/engine/movie/trade.asm
+++ b/engine/movie/trade.asm
@@ -157,12 +157,12 @@ LoadTradingGFXAndMonNames:
call Trade_ClearTileMap
call DisableLCD
ld hl, TradingAnimationGraphics
- ld de, vChars2 + $310
+ ld de, vChars2 tile $31
ld bc, TradingAnimationGraphicsEnd - TradingAnimationGraphics
ld a, BANK(TradingAnimationGraphics)
call FarCopyData2
ld hl, TradingAnimationGraphics2
- ld de, vSprites + $7c0
+ ld de, vSprites tile $7c
ld bc, TradingAnimationGraphics2End - TradingAnimationGraphics2
ld a, BANK(TradingAnimationGraphics2)
call FarCopyData2