From 38d771dc449732a4ca2d6eb6fb150f019eeacd7f Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sat, 29 Aug 2015 23:21:54 -0700 Subject: commented pokeball function --- engine/town_map.asm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'engine/town_map.asm') diff --git a/engine/town_map.asm b/engine/town_map.asm index 225de2b8..8bf11358 100755 --- a/engine/town_map.asm +++ b/engine/town_map.asm @@ -444,8 +444,12 @@ WritePlayerOrBirdSpriteOAM: ; 7126d (1c:526d) WriteTownMapSpriteOAM: ; 71279 (1c:5279) push hl + +; Subtract 4 from c (X coord) and 4 from b (Y coord). However, the carry from c +; is added to b, so the net result is that only 3 is subtracted from b. lb hl, -4, -4 - add hl, bc ; subtract 4 from c (X coord) and 4 from b (Y coord) + add hl, bc + ld b, h ld c, l pop hl @@ -469,14 +473,14 @@ WriteAsymmetricMonPartySpriteOAM: ; 71281 (1c:5281) xor a ld [hli], a inc d - ld a, $8 + ld a, 8 add c ld c, a dec e jr nz, .innerLoop pop bc pop de - ld a, $8 + ld a, 8 add b ld b, a dec d -- cgit v1.3.1-sl0p