diff options
| author | Zumi <13794376+ZoomTen@users.noreply.github.com> | 2021-01-26 10:29:07 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-25 22:29:07 -0500 |
| commit | d9f52a57a604cc1204f6077e21d75e04cb954672 (patch) | |
| tree | d1cfa2e3003c1bac1b74a3a289e01421dfcc387d /engine/dumps | |
| parent | 735e9f09a2bfc6c32ed596906c07ec501fb05070 (diff) | |
Disassemble RTC setup dialog and slot machine minigame (bank $24) (#87)
Also identify SFX and cry pointers
Diffstat (limited to 'engine/dumps')
| -rwxr-xr-x | engine/dumps/bank01.asm | 4 | ||||
| -rwxr-xr-x | engine/dumps/bank03.asm | 20 | ||||
| -rw-r--r-- | engine/dumps/bank23.asm | 29 |
3 files changed, 41 insertions, 12 deletions
diff --git a/engine/dumps/bank01.asm b/engine/dumps/bank01.asm index a420111..01f36da 100755 --- a/engine/dumps/bank01.asm +++ b/engine/dumps/bank01.asm @@ -3258,7 +3258,7 @@ Text6653: text_exit start_asm push de - ld de, $001b + ld de, SFX_SWITCH_POKEMON call PlaySFX pop de ld hl, Text6661 @@ -3727,7 +3727,7 @@ Function78f0: jr z, .sub_7956 .sub_7924 push de - ld de, $0005 + ld de, SFX_READ_TEXT_2 call PlaySFX pop de pop af diff --git a/engine/dumps/bank03.asm b/engine/dumps/bank03.asm index 0b507ce..519d2a1 100755 --- a/engine/dumps/bank03.asm +++ b/engine/dumps/bank03.asm @@ -3545,7 +3545,7 @@ Functioned00: ld a, $01 ld [wcab9], a push de - ld de, $0002 + ld de, SFX_FULL_HEAL call WaitPlaySFX call WaitSFX pop de @@ -3606,7 +3606,7 @@ Functioned37: ld de, wHPBarTempHP ld bc, $000a call CopyBytes - ld de, $0002 + ld de, SFX_FULL_HEAL call WaitPlaySFX ld hl, Textedcb call PrintText @@ -3839,7 +3839,7 @@ Functionef17: .sub_ef50 call Functionf7a2 push de - ld de, $0002 + ld de, SFX_FULL_HEAL call WaitPlaySFX pop de call Functionf0d8 @@ -4016,7 +4016,7 @@ Functionf0af: Functionf0b0: push de - ld de, $0001 + ld de, SFX_POTION call WaitPlaySFX pop de ld a, [wWhichPokemon] @@ -4522,7 +4522,7 @@ Functionf3fd: and a jr nz, .sub_f410 push de - ld de, $0021 + ld de, SFX_POKEFLUTE call WaitPlaySFX call WaitSFX pop de @@ -4543,7 +4543,7 @@ Textf424: line "@" Textf42f: - deciram wd15b, 2, 4 + deciram wCoins, 2, 4 text "まい" prompt @@ -4627,7 +4627,7 @@ Functionf49f: call Functionfab4 ld hl, Textf8c6 call PrintText - ld de, $0002 + ld de, SFX_FULL_HEAL call WaitPlaySFX ld c, $50 call DelayFrames @@ -4718,7 +4718,7 @@ Functionf550: ld bc, $0004 call CopyBytes .sub_f572 - ld de, $0002 + ld de, SFX_FULL_HEAL call WaitPlaySFX ld hl, Textf64c call PrintText @@ -4914,7 +4914,7 @@ Functionf678: ld a, c and a jr nz, .sub_f70c - ld de, $0014 + ld de, SFX_WRONG call WaitPlaySFX ld hl, Textf768 call PrintText @@ -4972,7 +4972,7 @@ Textf784: Functionf793: ld hl, Textf8c6 call PrintText - ld de, $0002 + ld de, SFX_FULL_HEAL call WaitPlaySFX call TextboxWaitPressAorB_BlinkCursor diff --git a/engine/dumps/bank23.asm b/engine/dumps/bank23.asm new file mode 100644 index 0000000..18302e8 --- /dev/null +++ b/engine/dumps/bank23.asm @@ -0,0 +1,29 @@ +INCLUDE "constants.asm" + +SECTION "engine/dumps/bank23.asm@AnimateTilesetImpl", ROMX + +AnimateTilesetImpl: + ldh a, [hMapAnims] + and a + ret z + + ld a, [wTilesetAnim] + ld e, a + ld a, [wTilesetAnim+1] + ld d, a + ldh a, [hTileAnimFrame] + ld l, a + inc a + ldh [hTileAnimFrame], a + ld h, 0 + add hl, hl + add hl, hl + add hl, de + ld e, [hl] + inc hl + ld d, [hl] + inc hl + ld a, [hli] + ld h, [hl] + ld l, a + jp hl |
