diff options
author | yenatch <yenatch@gmail.com> | 2015-03-14 02:08:30 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2015-03-14 02:08:30 -0400 |
commit | ec76703936ae690411a29c4f6ff11eef41ebdfd3 (patch) | |
tree | f06149eb62213a0401c515c6f922e803ce5109d2 /engine/town_map.asm | |
parent | 1c2a1076cb6420f12b458809bf2bec2737ce82ae (diff) | |
parent | 332b7b3090445902d53cd6d424c3c7f7da308136 (diff) |
Merge pull request #87 from YamaArashi/master
commented mon_party_sprites.asm
Diffstat (limited to 'engine/town_map.asm')
-rwxr-xr-x | engine/town_map.asm | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/engine/town_map.asm b/engine/town_map.asm index 7974cf1a..5a718519 100755 --- a/engine/town_map.asm +++ b/engine/town_map.asm @@ -444,12 +444,14 @@ Func_71279: ; 71279 (1c:5279) ld c, l pop hl -Func_71281: ; 71281 (1c:5281) +WriteAsymmetricMonPartySpriteOAM: ; 71281 (1c:5281) +; Writes 4 OAM blocks for a helix mon party sprite, since is does not have +; a vertical line of symmetry. ld de, $202 -.asm_71284 +.loop push de push bc -.asm_71286 +.innerLoop ld a, b ld [hli], a ld a, c @@ -465,24 +467,28 @@ Func_71281: ; 71281 (1c:5281) add c ld c, a dec e - jr nz, .asm_71286 + jr nz, .innerLoop pop bc pop de ld a, $8 add b ld b, a dec d - jr nz, .asm_71284 + jr nz, .loop ret -Func_712a6: ; 712a6 (1c:52a6) +WriteSymmetricMonPartySpriteOAM: ; 712a6 (1c:52a6) +; Writes 4 OAM blocks for a mon party sprite other than a helix. All the +; sprites other than the helix one have a vertical line of symmetry which allows +; the X-flip OAM bit to be used so that only 2 rather than 4 tile patterns are +; needed. xor a ld [wcd5c], a ld de, $202 -.asm_712ad +.loop push de push bc -.asm_712af +.innerLoop ld a, b ld [hli], a ld a, c @@ -498,7 +504,7 @@ Func_712a6: ; 712a6 (1c:52a6) add c ld c, a dec e - jr nz, .asm_712af + jr nz, .innerLoop pop bc pop de push hl @@ -510,7 +516,7 @@ Func_712a6: ; 712a6 (1c:52a6) add b ld b, a dec d - jr nz, .asm_712ad + jr nz, .loop ret Func_712d9: ; 712d9 (1c:52d9) |