diff options
author | yenatch <yenatch@gmail.com> | 2018-04-09 21:30:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 21:30:24 -0400 |
commit | 40b537d45b4b8937038126f7e5d2d21ccee460c0 (patch) | |
tree | 881a090b80b2c22985fc6d1231b03c6721a83462 /home/sprite_updates.asm | |
parent | e4b41fad4fd3787ca2e61adb5377ba8f68fca7ef (diff) | |
parent | 53ff57ca663dc5bf9c3731022b0eb0dc73f2207f (diff) |
Merge pull request #503 from Rangi42/master
Factor wMisc into meaningful parts; move most code out of home.asm
Diffstat (limited to 'home/sprite_updates.asm')
-rw-r--r-- | home/sprite_updates.asm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/home/sprite_updates.asm b/home/sprite_updates.asm new file mode 100644 index 000000000..121afc87b --- /dev/null +++ b/home/sprite_updates.asm @@ -0,0 +1,21 @@ +DisableSpriteUpdates:: ; 0x2ed3 + xor a + ld [hMapAnims], a + ld a, [wVramState] + res 0, a + ld [wVramState], a + ld a, $0 + ld [wSpriteUpdatesEnabled], a + ret +; 0x2ee4 + +EnableSpriteUpdates:: ; 2ee4 + ld a, $1 + ld [wSpriteUpdatesEnabled], a + ld a, [wVramState] + set 0, a + ld [wVramState], a + ld a, $1 + ld [hMapAnims], a + ret +; 2ef6 |