code_80194710 OK (Audio libultra_code_O2) (#474)

* code_80194710.c OK

* Add new line after variable declaration

* format

* Function declarations

* Name changes to match OoT

* Rename file

* s32 -> size_t
This commit is contained in:
engineer124 2021-12-27 14:51:37 +11:00 committed by GitHub
parent 76c39482bc
commit 27903c6286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 23 additions and 13 deletions

View File

@ -3642,8 +3642,8 @@ AudioTask* func_80192BE0(void);
// void func_80194568(void);
// void func_80194668(void);
// void func_801946E4(void);
// void func_80194710(void);
// void func_80194750(void);
void Audio_InvalDCache(void* buf, size_t size);
void Audio_WritebackDCache(void* buf, size_t size);
// void func_80194790(void);
// void func_80194840(void);
// void func_801948B0(void);

2
spec
View File

@ -639,7 +639,7 @@ beginseg
include "build/data/code/audio_load.bss.o"
include "build/src/code/audio/code_80192BE0.o"
include "build/data/code/code_80192BE0.data.o"
include "build/src/code/audio/code_80194710.o"
include "build/src/code/audio/audio_dcache.o"
include "build/src/code/audio/code_80194790.o"
include "build/data/code/code_80194790.data.o"
include "build/src/code/audio/audio_playback.o"

View File

@ -0,0 +1,15 @@
#include "global.h"
void Audio_InvalDCache(void* buf, size_t size) {
OSIntMask prevMask = osSetIntMask(1);
osInvalDCache(buf, size);
osSetIntMask(prevMask);
}
void Audio_WritebackDCache(void* buf, size_t size) {
OSIntMask prevMask = osSetIntMask(1);
osWritebackDCache(buf, size);
osSetIntMask(prevMask);
}

View File

@ -1,5 +0,0 @@
#include "global.h"
#pragma GLOBAL_ASM("asm/non_matchings/code/code_80194710/func_80194710.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/code_80194710/func_80194750.s")

View File

@ -483,7 +483,7 @@
0x8018B0F0 : "audio_heap",
0x8018EB60 : "audio_load",
0x80192BE0 : "code_80192BE0",
0x80194710 : "code_80194710",
0x80194710 : "audio_dcache",
0x80194790 : "code_80194790",
0x80194930 : "audio_playback",
0x80196A00 : "audio_effects",

View File

@ -3720,8 +3720,8 @@
0x80194568:("func_80194568",),
0x80194668:("func_80194668",),
0x801946E4:("func_801946E4",),
0x80194710:("func_80194710",),
0x80194750:("func_80194750",),
0x80194710:("Audio_InvalDCache",),
0x80194750:("Audio_WritebackDCache",),
0x80194790:("func_80194790",),
0x80194804:("func_80194804",),
0x80194840:("func_80194840",),

View File

@ -3238,8 +3238,8 @@ asm/non_matchings/code/code_80192BE0/func_80194548.s,func_80194548,0x80194548,0x
asm/non_matchings/code/code_80192BE0/func_80194568.s,func_80194568,0x80194568,0x40
asm/non_matchings/code/code_80192BE0/func_80194668.s,func_80194668,0x80194668,0x1F
asm/non_matchings/code/code_80192BE0/func_801946E4.s,func_801946E4,0x801946E4,0xB
asm/non_matchings/code/code_80194710/func_80194710.s,func_80194710,0x80194710,0x10
asm/non_matchings/code/code_80194710/func_80194750.s,func_80194750,0x80194750,0x10
asm/non_matchings/code/code_80194710/Audio_InvalDCache.s,Audio_InvalDCache,0x80194710,0x10
asm/non_matchings/code/code_80194710/Audio_WritebackDCache.s,Audio_WritebackDCache,0x80194750,0x10
asm/non_matchings/code/code_80194710/func_80194790.s,func_80194790,0x80194790,0x1D
asm/non_matchings/code/code_80194710/func_80194804.s,func_80194804,0x80194804,0xF
asm/non_matchings/code/code_80194710/func_80194840.s,func_80194840,0x80194840,0x1C

1 asm/non_matchings/code/z_en_a_keep/EnAObj_Init.s EnAObj_Init 0x800A5AC0 0x2B
3238 asm/non_matchings/code/code_80192BE0/func_80194568.s func_80194568 0x80194568 0x40
3239 asm/non_matchings/code/code_80192BE0/func_80194668.s func_80194668 0x80194668 0x1F
3240 asm/non_matchings/code/code_80192BE0/func_801946E4.s func_801946E4 0x801946E4 0xB
3241 asm/non_matchings/code/code_80194710/func_80194710.s asm/non_matchings/code/code_80194710/Audio_InvalDCache.s func_80194710 Audio_InvalDCache 0x80194710 0x10
3242 asm/non_matchings/code/code_80194710/func_80194750.s asm/non_matchings/code/code_80194710/Audio_WritebackDCache.s func_80194750 Audio_WritebackDCache 0x80194750 0x10
3243 asm/non_matchings/code/code_80194710/func_80194790.s func_80194790 0x80194790 0x1D
3244 asm/non_matchings/code/code_80194710/func_80194804.s func_80194804 0x80194804 0xF
3245 asm/non_matchings/code/code_80194710/func_80194840.s func_80194840 0x80194840 0x1C