PAL: match up through core1/audio/copy

This commit is contained in:
Banjo Kazooie
2024-09-07 01:54:12 -05:00
parent 64c9d1eca8
commit 057a22e8ef
8 changed files with 464 additions and 443 deletions

View File

@@ -13,16 +13,15 @@ gSPL3DEX_fifoDataStart = _binary_bin_core1_gSPL3DEX_fifo_data_bin_start;
gSPL3DEX_fifoDataEnd = _binary_bin_core1_gSPL3DEX_fifo_data_bin_end;
/* Fixed-address buffers */
D_80000300 = 0x80000300;
D_8000E800 = 0x8000E800;
D_8002D500 = 0x8002D500;
D_8023DA00 = 0x8023DA00; /* confirm */
func_8023DA20 = 0x8023E620;
D_803FBE00 = 0x803FBE00;
D_803FFE00 = 0x803FFE00;
D_803FFE10 = 0x803FFE10;
gOverlayTable = 0x803FFE10;
D_803A5D00 = 0x803A5D00; /* framebuffers */
D_8000E800 = 0x8000E800;
D_8002D500 = 0x8002D500;
D_8023DA00 = 0x8023E600; /* confirm */
func_8023DA20 = 0x8023E620;
D_803FBE00 = 0x803FBE00;
D_803FFE00 = 0x803FFE00;
D_803FFE10 = 0x803FFE10;
gOverlayTable = 0x803FFE10;
D_803A5D00 = 0x803A5D00; /* framebuffers */
/* Renames for the boot segment */
boot_D_8002D500 = D_8002D500;
@@ -32,165 +31,97 @@ boot_D_803FFE00 = D_803FFE00;
boot_gOverlayTable = gOverlayTable;
boot_func_8023DA20 = func_8023DA20;
/* Temporary*/
/* Temporary Correct*/
func_80253010 = 0x80252c60;
func_80253034 = 0x80252c84;
overlay_load = 0x80252Ca0;
func_802535A8 = 0x802531f8;
func_80254008 = 0x80253c58;
func_80254028 = 0x80253c78;
func_8025425C = 0x80253eac;
memcpy = 0x80254258;
heap_get_size = 0x80254320;
func_802546DC = 0x8025432c;
heap_init = 0x80254360;
malloc = 0x802548f8;
free = 0x80254d40;
func_80255198 = 0x80254de8;
func_80255524 = 0x80255174;
func_80255ACC = 0x8025571c;
write_file_blocks = 0x80255780;
func_80255C30 = 0x80255880;
func_80255CD8 = 0x80255928;
func_80255D0C = 0x8025595c;
func_80255D44 = 0x80255994;
ml_dotProduct_vec3f = 0x80255c84;
ml_distance_vec3f = 0x80255cb4;
ml_vec3f_normalize_copy = 0x80256008;
ml_vec3f_normalize = 0x802560a0;
ml_vec3f_set_length_copy = 0x80256230;
ml_vec3f_pitch_rotate_copy = 0x802564bc;
ml_vec3f_yaw_rotate_copy = 0x80256550;
func_80256E24 = 0x80256a74;
ml_init = 0x80257074;
ml_map_f = 0x80257768;
func_802585E0 = 0x80258230;
ml_sin_deg = 0x8025840c;
ml_cos_deg = 0x8025843c;
mlNormalizeAngle = 0x8025846c;
ml_vec3f_copy = 0x802587f4;
ml_vec3f_diff_copy = 0x80258810;
ml_vec3f_diff = 0x80258844;
ml_vec3f_add = 0x80258898;
func_8025A104 = 0x80259d54;
func_8025A55C = 0x8025a1ac;
func_8025A6CC = 0x8025a31c;
func_8025A864 = 0x8025a4b4;
func_8025A9D4 = 0x8025a624;
func_8025ABB8 = 0x8025a808;
func_8025AD7C = 0x8025a9cc;
func_8025ADBC = 0x8025aa0c;
func_8025AFB0 = 0x8025AC00;
func_8025AFB8 = 0x8025ac08;
sns_find_and_parse_payload = 0x8025ae30;
___osGetSR = 0x8025ac30;
sns_write_payload_over_heap = 0x8025b350;
DEBUG_use_special_bootmap = 0x8025b460;
sns_get_item_state = 0x8025b470;
n_alInit = 0x8025bf70;
n_alAudioFrame = 0x8025c118;
alEvtqPostEvent = 0x8025ca4c;
alEvtqNextEvent = 0x8025cb70;
alEvtqNew = 0x8025cbfc;
n_alSynAddSndPlayer = 0x8025cd80;
n_alSynAllocVoice = 0x8025ce58;
n_alSynSetVol = 0x8025d050;
n_alSynStartVoice = 0x8025d0f0;
n_alSynSetPan = 0x8025d170;
n_alSynSetPitch = 0x8025d1f0;
n_alSynSetFXMix = 0x8025d270;
n_alSynStopVoice = 0x8025d300;
n_alSynFreeVoice = 0x8025d370;
n_alCSPNew = 0x8025e70c;
alCSPSetBank = 0x8025e880;
alCSPStop = 0x8025e8c0;
n_alCSeqNew = 0x8025ed0c;
alCSPSetSeq = 0x8025ef90;
alCSPPlay = 0x8025efd0;
alCSPSetVol = 0x8025f000;
func_8025F3F0 = 0x8025f040;
alCSPSetTempo = 0x8025f080;
func_8025F4A0 = 0x8025f0f0;
alCSPGetTempo = 0x8025f120;
func_8025F510 = 0x8025f160;
func_8025F570 = 0x8025f1c0;
func_8025F5C0 = 0x8025f210;
bzero = 0x80263790;
osWriteBackDCacheAll = 0x80263830;
__osInitialize_common = 0x80263860;
osCreateThread = 0x80263b50;
sinf = 0x80263ca0;
alCents2Ratio = 0x80263e60;
alHeapInit = 0x80263eb0;
osCreateMesgQueue = 0x80263ef0;
osAiSetFrequency = 0x80263f20;
alUnlink = 0x80264080;
alLink = 0x802640b0;
alHeapDBAlloc = 0x80264140;
osRecvMesg = 0x802641a0;
osAiGetLength = 0x802642e0;
osVirtualToPhysical = 0x802642f0;
osAiSetNextBuffer = 0x80264370;
osPiStartDma = 0x80264420;
osStopThread = 0x80264530;
osStartThread = 0x802645f0;
osWritebackDCache = 0x80264740;
osInvalDCache = 0x802647C0;
osCreatePiManager = 0x80264870;
osDestroyThread = 0x80264a00;
osSendMesg = 0x80264b00;
osSetThreadPri = 0x80264c50;
guMtxF2L = 0x80264d30;
guMtxIdentF = 0x80264e30;
gu_sqrtf = 0x80264fa0;
cosf = 0x80264fb0;
osSetIntMask = 0x80265120;
osDpSetStatus = 0x802651c0;
osSpTaskLoad = 0x802652ec;
osSpTaskStartGo = 0x8026547c;
osDpGetStatus = 0x802654c0;
osViGetCurrentFramebuffer = 0x802654d0;
osStopTimer = 0x80265510;
osSetTimer = 0x80265600;
__d_to_ull = 0x80265718;
__ull_to_d = 0x80265884;
osSpTaskYielded = 0x802658f0;
osSpTaskYield = 0x80265970;
osViSetMode = 0x80265990;
osSetEventMesg = 0x80265a00;
osCreateViManager = 0x80265a70;
osViSetSpecialFeatures = 0x80265dd0;
osViSwapBuffer = 0x80265f90;
osViSetEvent = 0x80265fe0;
osViGetNextFramebuffer = 0x80266050;
osViBlack = 0x80266090;
guOrtho = 0x80266254;
guTranslate = 0x80266308;
guRotate = 0x802664f4;
osContStartReadData = 0x80266550;
osContGetReadData = 0x80266614;
osContInit = 0x802667b0;
osContSetCh = 0x80266b70;
alBnkfNew = 0x80266ce4;
osGetTime = 0x80266e30;
alCSeqGetTicks = 0x8026769c;
osMotorStop = 0x80267980;
osMotorStart = 0x80267ae8;
osMotorInit = 0x80267dd0;
osPfsInit = 0x80267fa0;
osInvalICache = 0x80268060;
_init_lpfilter = 0x80268620;
_doModFunc = 0x80268b00;
rmonPrintf = 0x8026976c;
alSeqSetLoc = 0x802697ac;
alSeqGetTicks = 0x802697c8;
__alSeqNextDelta = 0x80269c00;
__osSetSR = 0x80269db0;
__osGetSR = 0x80269dc0;
__osSetFpcCsr = 0x80269dd0;
__osSiRawReadIo = 0x80269de0;
__osSiRawWriteIo = 0x80269e30;
func_8026A2E0 = 0x80269e80;
__osEnqueueAndYield = 0x8026a4ac;
__osEnqueueThread = 0x8026a5ac;
__osPopThread = 0x8026a5f4;
__osDispatchThread = 0x8026a604;
__osCleanupThread = 0x8026A780;
osMapTLBRdb = 0x8026a790;
osPiRawReadIo = 0x8026a7f0;
__ull_div = 0x8026a8b8;
__ll_mul = 0x8026a9b8;
__osDisableInt = 0x8026ab10;
__osDequeueThread = 0x8026ab50;
__osRestoreInt = 0x8026ab30;
alSynNew = 0x8026af70;
alSynDelete = 0x8026b270;
__osProbeTLB = 0x8026b280;
__osAiDeviceBusy = 0x8026b340;
osJamMesg = 0x8026b370;
osPiGetCmdQueue = 0x8026b4c0;
__osPiCreateAccessQueue = 0x8026b6f0;
__osPiGetAccess = 0x8026b740;
__osPiRelAccess = 0x8026b784;
osGetThreadPri = 0x8026b7b0;
osPiRawStartDma = 0x8026B7D0;
osEPiRawStartDma = 0x8026b8b0;
__osDevMgrMain = 0x8026bae0;
bcopy = 0x8026bf70;
__osSpSetStatus = 0x8026c280;
__osSpDeviceBusy = 0x8026c360;
__osSpRawStartDma = 0x8026c2d0;
__osSpSetPc = 0x8026c290;
__osViInit = 0x8026c390;
__osTimerServicesInit = 0x8026c4d0;
__osTimerInterrupt = 0x8026c55c;
__osSetTimerIntr = 0x8026c6d4;
__osInsertTimer = 0x8026c748;
__osSetCompare = 0x8026c8d0;
__osSpGetStatus = 0x8026c8e0;
__osViGetCurrentContext = 0x8026c8f0;
__osViSwapContext = 0x8026c900;
osGetCount = 0x8026cc60;
guNormalize = 0x8026cc70;
__osSiCreateAccessQueue = 0x8026cd00;
__osSiGetAccess = 0x8026cd50;
__osSiRelAccess = 0x8026cd94;
__osSiRawStartDma = 0x8026cdc0;
__osContAddressCrc = 0x8026d1e0;
__osContRamWrite = 0x8026d360;
__osContRamRead = 0x8026d6e0;
__osPfsGetStatus = 0x8026da70;
__osGetId = 0x8026e1f4;
osPfsChecker = 0x8026e8e0;
osEepromWrite = 0x8026f340;
osEepromRead = 0x8026f890;
D_80276574 = 0x802762c4;
framebuffer_width = 0x802762d8;
framebuffer_height = 0x802762dc;
n_syn = 0x80276bd4;
osClockRate = 0x80276e70;
osViClock = 0x80276e78;
__osThreadTail = 0x802770c0;
__osRunQueue = 0x802770c8;
__osActiveQueue = 0x802770cc;
__osRunningThread = 0x802770d0;
__osPiAccessQueueEnabled = 0x802770e0;
__osViCurr = 0x80277150;
__osViNext = 0x80277154;
__osTimerList = 0x80277160;
__libm_qnan_f = 0x80278AF0;
__osPiDevMgr = 0x80276eb0;
CartRomHandle = 0x80285A00;
LeoDiskHandle = 0x80285A80;
__osPiAccessQueue = 0x80285b08;
__osCurrentTime = 0x80285b40;
__osBaseCounter = 0x80285b48;
__osViIntrCount = 0x80285b4c;
__osPfsPifRam = 0x80285b80;
core2_VRAM = 0x80286db0;
core2_TEXT_START = 0x80286db0;
animCache_flushStale = 0x80287f40;
animBinCache_flushStale = 0x8028855c;
player_getPosition = 0x8028e7c4;
player_getPosition_s32 = 0x8028e95c;
player_getWaterState = 0x8028eca4;
@@ -214,17 +145,33 @@ func_802E4214 = 0x802E4404;
func_802E4384 = 0x802e4574;
func_802E4424 = 0x802E4614;
game_defrag = 0x802e4ac8;
func_802E49E0 = 0x802e4bd0;
getGameMode = 0x802e4bec;
func_802E4A08 = 0x802e4bf8;
func_802E6820 = 0x802e6a04;
freelist_clear = 0x802edc20;
freelist_at = 0x802edc5c;
freelist_size = 0x802edc74;
freelist_next = 0x802edc84;
freelist_elementIsAlive = 0x802eddf8;
freelist_free = 0x802ede44;
freelist_new = 0x802ede64;
freelist_freeElement = 0x802edebc;
freelist_defrag = 0x802edee0;
func_802F1294 = 0x802f1474;
printbuffer_defrag = 0x802f560c;
func_802F9AA8 = 0x802f9c88;
func_802F9F80 = 0x802fa160;
func_802F9FD0 = 0x802fa1b0;
func_802FA060 = 0x802fa240;
func_80309B48 = 0x80309ce8;
func_80309D58 = 0x80309ef8;
func_8030A850 = 0x8030a9f0;
gctransition_done = 0x8030bf38;
gctransition_8030BDC0 = 0x8030bf60;
gctransition_reset = 0x8030c07c;
func_8030C704 = 0x8030c8a4;
func_8030C710 = 0x8030c8b0;
func_8030D90C = 0x8030daac;
func_8030DA44 = 0x8030dbe4;
sfxsource_setSfxId = 0x8030dc20;
@@ -252,27 +199,38 @@ levelSpecificFlags_validateCRC1 = 0x8032243c;
func_8032274C = 0x80322b4c;
func_80322758 = 0x80322b58;
func_80323240 = 0x80323690;
timedFunc_set_1 = 0x80325334;
timedFunc_set_2 = 0x80325370;
timedFunc_set_3 = 0x803253b4;
marker_getActor = 0x80329db0;
func_8032AD7C = 0x8032b1d4;
func_803306C8 = 0x80330b18;
map_get = 0x80334d10;
func_80335134 = 0x80335584;
sfxInstruments_init = 0x80335670;
assetcache_release = 0x8033b828;
assetcache_update_ptr = 0x8033b9c4;
func_8033B61C = 0x8033ba6c;
func_8033B788 = 0x8033bbd8;
assetcache_get = 0x8033bbe8;
assetCache_init = 0x8033bfd4;
func_8033BD6C = 0x8033C1BC;
func_8033BD8C = 0x8033c1dc;
savedata_8033CA9C = 0x8033ceec;
savedata_8033CE40 = 0x8033d15c;
func_8033DD04 = 0x8033e154;
func_8033DD90 = 0x8033e1e0;
time_getDelta = 0x8033e1ec;
func_8033EF58 = 0x8033f3a8;
func_8033EFB0 = 0x8033f400;
func_8033F000 = 0x8033f450;
demo_readInput = 0x8034a334;
randf = 0x8034a7e0;
func_8034C630 = 0x8034ca90;
func_8034E698 = 0x8034eaf8;
D_803727F4 = 0x80372d74;
D_80379B90 = 0x8037A560;
core2_TEXT_END = 0x80363a00;
core2_DATA_START = 0x80363a00;
core2_RODATA_END = 0x8037A560;