diff options
author | yenatch <yenatch@gmail.com> | 2013-09-01 00:52:19 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-09-01 00:52:19 -0400 |
commit | 7d5e5b81823f72d25e4a61ad66019a5fd2a5a586 (patch) | |
tree | 62c0401c0a1af52a547253f052b0d53464369177 | |
parent | cc2906b68f6fae7c7b235e381ae0c60d0a069d1f (diff) |
recomment _AnimateTileset
-rw-r--r-- | main.asm | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -65390,42 +65390,42 @@ DoBadgeTypeBoosts: ; fbe24 SECTION "bank3F",ROMX,BANK[$3F] _AnimateTileset: ; fc000 -; Iterate over a given pointer array of animation functions -; (one per frame). +; Iterate over a given pointer array of +; animation functions (one per frame). + ; Typically in wra1, vra0 -; Beginning of animation pointer array ld a, [TilesetAnim] ld e, a ld a, [TilesetAnim + 1] ld d, a -; Play this frame. - ld a, [hTileAnimFrame] ; frame count + ld a, [hTileAnimFrame] ld l, a inc a ld [hTileAnimFrame], a - -; Each pointer has: + ld h, 0 add hl, hl add hl, hl add hl, de -; 2-byte parameter (all functions take input de) +; 2-byte parameter +; All functions take input de. ld e, [hl] inc hl ld d, [hl] inc hl - + ; Function address ld a, [hli] ld h, [hl] ld l, a - + jp [hl] ; fc01b + Tileset00Anim: ; 0xfc01b Tileset02Anim: ; 0xfc01b Tileset03Anim: ; 0xfc01b |