1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-29 08:16:11 +00:00
oot/data/code_800EC960.data.s
krimtonz d1a5ea5110
Audio WIP (#836)
* being code_800EC960

* wip

* wip

* more audio progress

* migrate data in code_800E11F0

* wip

* make ok

* remove asm

* wip

* move some variables outside of gAudioContext to the AudioContext structure due to the size used in func_800E3094

* more progress

* wip

* wip

* split code_800E11F0

* migrate rodata in code_800E11F0

* match functions that couldn't because of data issues

* move code_800E4FE0 asm files

* wip

* more wip

* fix global functions, and forward declarations

* wip

* wip

* wip

* ocarina wip

* match a couple functions

* some progress

* separate some bss

* match func_800EDA3C

* some matching

* more matches

* migrate audio rodata

* some matches

* more matchess

* start on synthesis

* work on synthesis

* fix function declaration

* Merge branch 'master' into audio

* match a few more functions

* wip

* wip

* more matching, rename Audio_SetBGM to Audio_QueueSeqCmd

* name several audio functions, and audiocontext members

* more naming, rename code_800E11F0 to audio_load, code_800DAAC0 to audio_synthesis

* audio wip

* match a few more functions.

* wip

* add missing NON_MATCHING directive

* wip

* some matching, data reogranization

* match cursed function

* wip

* wip

* formatting

* remove prefix from struct memebers

* missed function rename

* review

Co-authored-by: fig02 <fig02srl@gmail.com>
2021-07-27 19:44:58 -04:00

484 lines
9.7 KiB
ArmAsm

.include "macro.inc"
# assembler directives
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.set gp=64 # allow use of 64-bit general purpose registers
.section .data
.balign 16
glabel D_80130570
.incbin "baserom.z64", 0xBA7710, 0x8
glabel D_80130578
.incbin "baserom.z64", 0xBA7718, 0x1C
glabel D_80130594
.incbin "baserom.z64", 0xBA7734, 0x1C
glabel D_801305B0
.incbin "baserom.z64", 0xBA7750, 0x4
glabel D_801305B4
.incbin "baserom.z64", 0xBA7754, 0x4
glabel D_801305B8
.incbin "baserom.z64", 0xBA7758, 0x4
glabel D_801305BC
.incbin "baserom.z64", 0xBA775C, 0x4
glabel D_801305C0
.incbin "baserom.z64", 0xBA7760, 0x4
glabel D_801305C4
.incbin "baserom.z64", 0xBA7764, 0x8
glabel D_801305CC
.incbin "baserom.z64", 0xBA776C, 0x4
glabel D_801305D0
.incbin "baserom.z64", 0xBA7770, 0x10
glabel sPrevChargeLevel
.incbin "baserom.z64", 0xBA7780, 0x4
glabel D_801305E4
.incbin "baserom.z64", 0xBA7784, 0x10
glabel D_801305F4
.incbin "baserom.z64", 0xBA7794, 0x4
glabel D_801305F8
.incbin "baserom.z64", 0xBA7798, 0x7
glabel D_801305FF
.incbin "baserom.z64", 0xBA779F, 0x1
glabel D_80130600
.incbin "baserom.z64", 0xBA77A0, 0x4
glabel D_80130604
.incbin "baserom.z64", 0xBA77A4, 0x4
glabel D_80130608
.incbin "baserom.z64", 0xBA77A8, 0x4
glabel D_8013060C
.incbin "baserom.z64", 0xBA77AC, 0x4
glabel D_80130610
.incbin "baserom.z64", 0xBA77B0, 0x4
glabel D_80130614
.incbin "baserom.z64", 0xBA77B4, 0x4
glabel D_80130618
.incbin "baserom.z64", 0xBA77B8, 0x4
glabel D_8013061C
.incbin "baserom.z64", 0xBA77BC, 0x4
glabel D_80130620
.incbin "baserom.z64", 0xBA77C0, 0x4
glabel D_80130624
.incbin "baserom.z64", 0xBA77C4, 0x4
glabel D_80130628
.incbin "baserom.z64", 0xBA77C8, 0x4
glabel D_8013062C
.incbin "baserom.z64", 0xBA77CC, 0x4
glabel D_80130630
.incbin "baserom.z64", 0xBA77D0, 0x4
glabel D_80130634
.incbin "baserom.z64", 0xBA77D4, 0x4
glabel D_80130638
.incbin "baserom.z64", 0xBA77D8, 0x4
glabel D_8013063C
.incbin "baserom.z64", 0xBA77DC, 0x4
glabel D_80130640
.incbin "baserom.z64", 0xBA77E0, 0x4
glabel D_80130644
.incbin "baserom.z64", 0xBA77E4, 0x4
glabel D_80130648
.incbin "baserom.z64", 0xBA77E8, 0x4
glabel D_8013064C
.incbin "baserom.z64", 0xBA77EC, 0x4
glabel D_80130650
.incbin "baserom.z64", 0xBA77F0, 0x4
glabel D_80130654
.incbin "baserom.z64", 0xBA77F4, 0x4
glabel D_80130658
.incbin "baserom.z64", 0xBA77F8, 0x70
glabel D_801306C8
.incbin "baserom.z64", 0xBA7868, 0x14
glabel D_801306DC
.incbin "baserom.z64", 0xBA787C, 0x820
glabel sOcarinaAllowedBtnMask
.incbin "baserom.z64", 0xBA809C, 0x4
glabel sOcarinaABtnMap
.incbin "baserom.z64", 0xBA80A0, 0x4
glabel sOcarinaCUPBtnMap
.incbin "baserom.z64", 0xBA80A4, 0x4
glabel sOcarinaCDownBtnMap
.incbin "baserom.z64", 0xBA80A8, 0x4
glabel sOcarinaInpEnabled
.incbin "baserom.z64", 0xBA80AC, 0x4
glabel D_80130F10
.incbin "baserom.z64", 0xBA80B0, 0x4
glabel sCurOcarinaBtnVal
.incbin "baserom.z64", 0xBA80B4, 0x4
glabel sPrevOcarinaNoteVal
.incbin "baserom.z64", 0xBA80B8, 0x4
glabel sCurOcarinaBtnIdx
.incbin "baserom.z64", 0xBA80BC, 0x4
glabel sLearnSongLastBtn
.incbin "baserom.z64", 0xBA80C0, 0x4
glabel D_80130F24
.incbin "baserom.z64", 0xBA80C4, 0x4
glabel D_80130F28
.incbin "baserom.z64", 0xBA80C8, 0x4
glabel D_80130F2C
.incbin "baserom.z64", 0xBA80CC, 0x4
glabel D_80130F30
.incbin "baserom.z64", 0xBA80D0, 0x4
glabel D_80130F34
.incbin "baserom.z64", 0xBA80D4, 0x4
glabel sPlaybackState
.incbin "baserom.z64", 0xBA80D8, 0x4
glabel D_80130F3C
.incbin "baserom.z64", 0xBA80DC, 0x2
glabel D_80130F3E
.incbin "baserom.z64", 0xBA80DE, 0x2
glabel sNotePlaybackTimer
.incbin "baserom.z64", 0xBA80E0, 0x4
glabel sPlaybackNotePos
.incbin "baserom.z64", 0xBA80E4, 0x4
glabel sStaffPlaybackPos
.incbin "baserom.z64", 0xBA80E8, 0x4
glabel D_80130F4C
.incbin "baserom.z64", 0xBA80EC, 0x4
glabel sDisplayedNoteValue
.incbin "baserom.z64", 0xBA80F0, 0x4
glabel sNotePlaybackVolume
.incbin "baserom.z64", 0xBA80F4, 0x4
glabel sNotePlaybackVibrato
.incbin "baserom.z64", 0xBA80F8, 0x4
glabel sNotePlaybackTone
.incbin "baserom.z64", 0xBA80FC, 0x4
glabel sNormalizedNotePlaybackTone
.incbin "baserom.z64", 0xBA8100, 0x4
glabel sNormalizedNotePlaybackVolume
.incbin "baserom.z64", 0xBA8104, 0x4
glabel D_80130F68
.incbin "baserom.z64", 0xBA8108, 0x4
glabel sOcarinaNoteValues
.incbin "baserom.z64", 0xBA810C, 0x8
glabel sOcaMinigameApndPos
.incbin "baserom.z64", 0xBA8114, 0x4
glabel sOcaMinigameEndPos
.incbin "baserom.z64", 0xBA8118, 0x4
glabel sOcaMinigameNoteCnts
.incbin "baserom.z64", 0xBA811C, 0x4
glabel sOcarinaSongs
.incbin "baserom.z64", 0xBA8120, 0x8C0
glabel sPlaybackSong
.word sOcarinaSongs
glabel D_80131844
.incbin "baserom.z64", 0xBA89E4, 0x10
glabel gFrogsSongPtr
.word D_80131844
glabel D_80131858
.incbin "baserom.z64", 0xBA89F8, 0x4
glabel sRecordSongPos
.incbin "baserom.z64", 0xBA89FC, 0x4
glabel D_80131860
.incbin "baserom.z64", 0xBA8A00, 0x4
glabel D_80131864
.incbin "baserom.z64", 0xBA8A04, 0x4
glabel D_80131868
.incbin "baserom.z64", 0xBA8A08, 0x4
glabel D_8013186C
.incbin "baserom.z64", 0xBA8A0C, 0x4
glabel D_80131870
.incbin "baserom.z64", 0xBA8A10, 0x4
glabel D_80131874
.incbin "baserom.z64", 0xBA8A14, 0x4
glabel D_80131878
.incbin "baserom.z64", 0xBA8A18, 0x4
glabel D_8013187C
.incbin "baserom.z64", 0xBA8A1C, 0x4
glabel D_80131880
.incbin "baserom.z64", 0xBA8A20, 0x4
glabel sPierresSong
.incbin "baserom.z64", 0xBA8A24, 0x360
glabel gScarecrowCustomSongPtr
.word sPierresSong
glabel gScarecrowSpawnSongPtr
.word sOcarinaSongs+0x780
glabel D_80131BEC
.word sOcarinaSongs+0x820
glabel sNoteValueIndexMap
.incbin "baserom.z64", 0xBA8D90, 0x10
glabel gOcarinaSongNotes
.incbin "baserom.z64", 0xBA8DA0, 0x80
glabel D_80131C80
.incbin "baserom.z64", 0xBA8E20, 0x4
glabel D_80131C84
.incbin "baserom.z64", 0xBA8E24, 0x4
glabel D_80131C88
.incbin "baserom.z64", 0xBA8E28, 0x4
glabel D_80131C8C
.incbin "baserom.z64", 0xBA8E2C, 0x4
glabel D_80131C90
.incbin "baserom.z64", 0xBA8E30, 0x4
glabel D_80131C94
.incbin "baserom.z64", 0xBA8E34, 0x4
glabel D_80131C98
.incbin "baserom.z64", 0xBA8E38, 0x4
glabel D_80131C9C
.incbin "baserom.z64", 0xBA8E3C, 0x4
glabel D_80131CA0
.incbin "baserom.z64", 0xBA8E40, 0x4
glabel D_80131CA4
.incbin "baserom.z64", 0xBA8E44, 0x4
glabel D_80131CA8
.incbin "baserom.z64", 0xBA8E48, 0x4
glabel D_80131CAC
.incbin "baserom.z64", 0xBA8E4C, 0x15C
glabel D_80131E08
.incbin "baserom.z64", 0xBA8FA8, 0xC
glabel D_80131E14
.incbin "baserom.z64", 0xBA8FB4, 0xC
glabel D_80131E20
.incbin "baserom.z64", 0xBA8FC0, 0x4
glabel D_80131E24
.incbin "baserom.z64", 0xBA8FC4, 0x14
glabel D_80131E38
.incbin "baserom.z64", 0xBA8FD8, 0xB
glabel D_80131E43
.incbin "baserom.z64", 0xBA8FE3, 0x16
glabel D_80131E59
.incbin "baserom.z64", 0xBA8FF9, 0xB
glabel D_80131E64
.incbin "baserom.z64", 0xBA9004, 0xB
glabel D_80131E6F
.incbin "baserom.z64", 0xBA900F, 0xB
glabel D_80131E7A
.incbin "baserom.z64", 0xBA901A, 0xE
glabel D_80131E88
.incbin "baserom.z64", 0xBA9028, 0x34
glabel D_80131EBC
.incbin "baserom.z64", 0xBA905C, 0x4
glabel D_80131EC0
.incbin "baserom.z64", 0xBA9060, 0x4
glabel D_80131EC4
.incbin "baserom.z64", 0xBA9064, 0x4
glabel D_80131EC8
.incbin "baserom.z64", 0xBA9068, 0x8
glabel D_80131ED0
.incbin "baserom.z64", 0xBA9070, 0x4
glabel D_80131ED4
.incbin "baserom.z64", 0xBA9074, 0x4
glabel D_80131ED8
.incbin "baserom.z64", 0xBA9078, 0x4
glabel D_80131EDC
.incbin "baserom.z64", 0xBA907C, 0x4
glabel D_80131EE0
.incbin "baserom.z64", 0xBA9080, 0x4
glabel D_80131EE4
.incbin "baserom.z64", 0xBA9084, 0xA
glabel D_80131EEE
.incbin "baserom.z64", 0xBA908E, 0x2
glabel D_80131EF0
.incbin "baserom.z64", 0xBA9090, 0xC
glabel D_80131EFC
.incbin "baserom.z64", 0xBA909C, 0x4
glabel D_80131F00
.incbin "baserom.z64", 0xBA90A0, 0x4
glabel D_80131F04
.incbin "baserom.z64", 0xBA90A4, 0x4
glabel D_80131F08
.incbin "baserom.z64", 0xBA90A8, 0x4
glabel D_80131F0C
.incbin "baserom.z64", 0xBA90AC, 0xC
glabel D_80131F18
.incbin "baserom.z64", 0xBA90B8, 0x4
glabel D_80131F1C
.incbin "baserom.z64", 0xBA90BC, 0x4
glabel D_80131F20
.incbin "baserom.z64", 0xBA90C0, 0x8
glabel D_80131F28
.incbin "baserom.z64", 0xBA90C8, 0x4
glabel D_80131F2C
.incbin "baserom.z64", 0xBA90CC, 0x4
glabel D_80131F30
.incbin "baserom.z64", 0xBA90D0, 0x14
glabel D_80131F44
.incbin "baserom.z64", 0xBA90E4, 0x8
glabel D_80131F4C
.incbin "baserom.z64", 0xBA90EC, 0x4
glabel D_80131F50
.incbin "baserom.z64", 0xBA90F0, 0x4
glabel D_80131F54
.incbin "baserom.z64", 0xBA90F4, 0x10
glabel D_80131F64
.incbin "baserom.z64", 0xBA9104, 0x4
glabel D_80131F68
.incbin "baserom.z64", 0xBA9108, 0x4
glabel D_80131F6C
.incbin "baserom.z64", 0xBA910C, 0x4
glabel D_80131F70
.incbin "baserom.z64", 0xBA9110, 0x7CC
glabel D_8013273C
.incbin "baserom.z64", 0xBA98DC, 0x380
glabel D_80132ABC
.incbin "baserom.z64", 0xBA9C5C, 0x140
glabel D_80132BFC
.incbin "baserom.z64", 0xBA9D9C, 0x3E0
glabel D_80132FDC
.incbin "baserom.z64", 0xBAA17C, 0x120
glabel D_801330FC
.incbin "baserom.z64", 0xBAA29C, 0x20
glabel D_8013311C
.incbin "baserom.z64", 0xBAA2BC, 0x200
glabel D_8013331C
.word D_8013273C
.word D_80132ABC
.word D_80132BFC
.word D_80131F70
.word D_80132FDC
.word D_801330FC
.word D_8013311C