Skip to content

Commit

Permalink
split rvlAxOut (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl authored Apr 4, 2022
1 parent dd1809c commit a249398
Show file tree
Hide file tree
Showing 10 changed files with 909 additions and 27 deletions.
12 changes: 8 additions & 4 deletions pack/dol_objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,19 +234,23 @@ out/rvlAx.o
out/dol/data_8027e7bf_8027e860.o
out/rvlAxComp.o
out/dol/data_8027f820_802826a0.o
out/dol/sdata_803857fc_80385920.o
out/dol/sdata_803857fc_80385800.o
out/rvlAxDspCode.o
out/dol/sdata_80385806_80385920.o
out/dol/sbss_8038648c_80386490.o
out/rvlAxAlloc.o
out/dol/bss_802f41c0_802f7340.o
out/dol/sbss_80386494_80386498.o
out/rvlAxAux.o
out/rvlAxCl.o
out/dol/text_80126638_8012e564.o
out/dol/bss_802f7440_803457e0.o
out/dol/sbss_803864fc_80386500.o
out/rvlAxOut.o
out/dol/text_80126e30_8012e564.o
out/ppcArch.o
out/dol/text_8012e6d4_80169bcc.o
out/dol/data_802826d7_8028e998.o
out/dol/bss_802f7440_803457e0.o
out/dol/sbss_803864fc_80386770.o
out/dol/sbss_8038653c_80386770.o
out/fs.o
out/dol/text_8016b49c_80192f7c.o
out/dol/sdata_80385930_80385990.o
Expand Down
2 changes: 2 additions & 0 deletions pack/dol_slices.csv
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ enabled,strip,name,initStart,initEnd,extabStart,extabEnd,extabindexStart,extabin
1,,source/rvl/ax/rvlAxAlloc.c,,,,,,,0x80124edc,0x80125394,,,,,,,,,0x802f40c0,0x802f41c0,,,0x80386490,0x80386494,,,,
1,,source/rvl/ax/rvlAxAux.c,,,,,,,0x80125394,0x80125bac,,,,,,,,,,,,,0x80386498,0x803864e0,,,,
1,,source/rvl/ax/rvlAxCl.c,,,,,,,0x80125bac,0x80126638,,,,,,,,,0x802f7340,0x802f7440,,,0x803864e0,0x803864fc,,,,
1,,source/rvl/ax/rvlAxOut.c,,,,,,,0x80126638,0x80126e30,,,,,,,,,,,,,0x80386500,0x8038653c,,,,
1,,source/rvl/ax/rvlAxComp.c,,,,,,,,,,,,,,,0x8027e860,0x8027f820,,,,,,,,,,
1,,source/rvl/ax/rvlAxDspCode.c,,,,,,,,,,,,,,,,,,,0x80385800,0x80385806,,,,,,
1,,source/rvl/base/ppcArch.c,,,,,,,0x8012e564,0x8012e6d4,,,,,,,0x802826a0,0x802826d7,,,,,,,,,,
1,,source/rvl/fs/fs.c,,,,,,,0x80169bcc,0x8016b49c,,,,,,,,,,,0x80385920,0x80385930,0x80386770,0x80386788,,,,
1,,source/rvl/ipc/ipcMain.c,,,,,,,0x80192f7c,0x80193048,,,,,,,,,,,,,0x803867e8,0x803867fc,,,,
Expand Down
97 changes: 78 additions & 19 deletions pack/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4251,10 +4251,10 @@
0x80123d6c sakeiGetRandomRecordFillSoapRequest
0x80123e4c sakeiGetRandomRecordProcessSoapResponse
0x80123ed8 sakeiGetRandomRecordFreeData
0x80123f88 unk_80123f88
0x80123fcc unk_80123fcc
0x80124048 unk_80124048
0x8012405c unk_8012405c
0x80123f88 AIRegisterDMACallback
0x80123fcc AIInitDMA
0x80124048 AIStartDMA
0x8012405c AIGetDMABytesLeft
0x8012406c unk_8012406c
0x80124084 unk_80124084
0x80124094 unk_80124094
Expand Down Expand Up @@ -4321,27 +4321,27 @@
0x80126620 AXSetAuxAReturnVolume
0x80126628 AXSetAuxBReturnVolume
0x80126630 AXSetAuxCReturnVolume
0x80126638 unk_80126638
0x80126898 unk_80126898
0x80126948 unk_80126948
0x80126954 unk_80126954
0x801269a8 unk_801269a8
0x801269b8 unk_801269b8
0x801269bc unk_801269bc
0x80126638 __AXOutNewFrame
0x80126898 __AXOutAiCallback
0x80126948 __AXDSPInitCallback
0x80126954 __AXDSPResumeCallback
0x801269a8 __AXDSPDoneCallback
0x801269b8 __AXDSPRequestCallback
0x801269bc __AXOutInitDSP
0x80126aac __AXOutInit
0x80126ca4 unk_80126ca4
0x80126ce8 unk_80126ce8
0x80126d14 unk_80126d14
0x80126dd8 unk_80126dd8
0x80126ca4 AXRegisterCallback
0x80126ce8 AXRmtGetSamplesLeft
0x80126d14 AXRmtGetSamples
0x80126dd8 AXRmtAdvancePtr
0x80126e30 __AXGetStudio
0x80126e3c unk_80126e3c
0x80126ea8 unk_80126ea8
0x80126f14 unk_80126f14
0x80126f14 __AXPrintStudio
0x8012708c __AXSPBInit
0x801270e4 unk_801270e4
0x80127250 unk_80127250
0x80127250 __AXGetNumVoices
0x80127258 unk_80127258
0x801277a8 unk_801277a8
0x801277a8 __AXSyncPBs
0x80127ab8 __AXGetPBs
0x80127ac0 __AXSetPBDefault
0x80127b00 __AXVPBInit
Expand All @@ -4350,7 +4350,7 @@
0x80127f20 unk_80127f20
0x80127fdc unk_80127fdc
0x80127fe4 unk_80127fe4
0x80127fec unk_80127fec
0x80127fec __AXGetCurrentProfile
0x8012802c unk_8012802c
0x80128090 unk_80128090
0x801280b8 unk_801280b8
Expand Down Expand Up @@ -8758,10 +8758,27 @@
0x80244cc8 unk_80244cc8
0x80244d30 unk_80244d30
0x80244d3c unk_80244d3c
0x80244de0 __init_cpp_exceptions_reference
0x80244ea0 __destroy_global_chain_reference
0x80244ea4 __fini_cpp_exceptions_reference
0x80245088 sSystemResources__Q26System8Resource
0x80248010 gSinCosTbl__Q34nw4r4math6detail
0x80252dd0 PADClampRegionV1
0x80252ddc PADClampRegionV2
0x802582e0 gRMO_Ntsc_640x456IntDf_4x3__Q23EGG22@unnamed@eggVideo_cpp@
0x8025831c gRMO_Ntsc_640x456Prog_4x3__Q23EGG22@unnamed@eggVideo_cpp@
0x80258358 gRMO_Pal50_640x456IntDf_4x3__Q23EGG22@unnamed@eggVideo_cpp@
0x80258394 gRMO_Pal60_640x456IntDf_4x3__Q23EGG22@unnamed@eggVideo_cpp@
0x802583d0 gRMO_Pal60_640x456Prog_4x3__Q23EGG22@unnamed@eggVideo_cpp@
0x8025840c gRMO_Ntsc_640x456IntDf_16x9__Q23EGG22@unnamed@eggVideo_cpp@
0x80258448 gRMO_Ntsc_640x456Prog_16x9__Q23EGG22@unnamed@eggVideo_cpp@
0x80258484 gRMO_Pal50_640x456IntDf_16x9__Q23EGG22@unnamed@eggVideo_cpp@
0x802584c0 gRMO_Pal60_640x456IntDf_16x9__Q23EGG22@unnamed@eggVideo_cpp@
0x802584fc gRMO_Pal60_640x456Prog_16x9__Q23EGG22@unnamed@eggVideo_cpp@
0x80258538 StandardRenderModesTable__Q23EGG22@unnamed@eggVideo_cpp@
0x80270fd0 __ctype_mapC
0x80271148 _current_locale
0x80274148 sArcTanTbl__Q34nw4r4math28@unnamed@mathTriangular_cpp@
0x80274318 __vt__Q34nw4r3snd15DvdSoundArchive
0x80274c40 __vt__Q34nw4r2ut13DvdFileStream
0x80274ca8 __vt__Q34nw4r2ut19DvdLockedFileStream
Expand All @@ -8770,12 +8787,18 @@
0x80274e74 __vt__Q44nw4r2ut6detail11ResFontBase
0x80274ed0 __vt__Q34nw4r2ut7ResFont
0x80274f30 __RFL_VERSION
0x8027aca0 MD5_PADDING
0x8027ae48 GS_XML_SOAP_DEFAULT_NAMESPACES
0x8027b4d0 GPConnectionManagerHostname
0x8027bd30 GPIInfoCacheFilename
0x8027bee8 GPSearchManagerHostname
0x8027c2c8 GT2ChallengeKey
0x8027c2f0 static_qr2_rec
0x8027d300 qr2_registered_key_list
0x8027e860 __AXCompressorTable
0x80290600 OSInterruptPrioTable
0x8029ccc8 PAD_ResetFunctionInfo
0x802a2360 NET_RM_SOCK
0x802a2668 __vt__Q23EGG9Allocator
0x802a2680 __vt__Q23EGG7Archive
0x802a2a08 __vt__Q23EGG7CntFile
Expand Down Expand Up @@ -8805,6 +8828,11 @@
0x802f7d20 __AXOutBuffer
0x802f81a0 __AXDSPTask
0x802f8200 __AXDramImage
0x80345810 kpad_inside_status
0x80346cf0 MEM_RootList
0x80346d00 MEM_GlobalLock
0x80348200 PAD_AltStatus
0x80357220 soWork
0x803832d8 sArchiveList__Q23EGG7Archive
0x80383500 gCntFileList__3EGG
0x80384190 sDvdList__Q23EGG7DvdFile
Expand All @@ -8815,28 +8843,50 @@
0x80384bb8 ex__Q23EGG8Vector3f
0x80384bd0 ey__Q23EGG8Vector3f
0x80384be8 ez__Q23EGG8Vector3f
0x80384d90 VERSION__Q24nw4r3lyt
0x80385520 NNMagicData
0x803855d8 ghiThrottleBufferSize
0x803855dc ghiThrottleTimeDelay
0x80385800 axDspInitVector
0x80385802 axDspResumeVector
0x80385804 axDspSlaveLength
0x80385a98 __OSCurrentHeap
0x80385aa0 __OSMEM1ArenaLo
0x80385aa4 __OSMEM2ArenaLo
0x80385b08 __PAD_VERSION
0x80385b0c PADResetChan
0x80385b10 PAD_StickXResetBit
0x80385b14 PAD_AnalogMode
0x80385b1c PAD_MakeStatus
0x80385ee0 __SO_VERSION
0x80385ee4 soBufAddrCheck
0x80385ee8 __SOCKET_VERSION
0x80385f88 sErrorRetry__Q23EGG9DvdRipper
0x803860ac __global_destructor_chain
0x80386240 typeInfo__Q34nw4r2ut8IOStream
0x80386248 typeInfo__Q34nw4r2ut10FileStream
0x80386250 typeInfo__Q34nw4r2ut13DvdFileStream
0x80386258 typeInfo__Q34nw4r2ut19DvdLockedFileStream
0x80386260 sThreadQueue__Q34nw4r2ut19DvdLockedFileStream
0x80386268 sInitialized__Q34nw4r2ut19DvdLockedFileStream
0x80386270 typeInfo__Q34nw4r2ut14NandFileStream
0x803862a8 stDwcLastError
0x803862ac stDwcErrorCode
0x80386354 GSIRevolutionErrno
0x80386358 __GSIACResult
0x80386370 ghiProxyPort
0x80386374 ghiProxyAddress
0x80386378 ghiNextUniqueID
0x8038637c ghiNumConnections
0x80386380 ghiConnectionsLen
0x80386384 ghiConnections
0x80386388 ghiReferenceCount
0x803863b8 g_buckets
0x803863c0 g_statsgame
0x80386430 g_SBRefStrList
0x80386438 SBNullServer
0x80386440 SBOverrideMasterServer
0x80386444 g_sortserverlist
0x80386500 __AXExceedCallback
0x80386504 __AXRmtCpuPtr
0x80386508 __AXRmtDspPtr
Expand All @@ -8855,6 +8905,7 @@
0x803867f0 IPCBufferHi
0x803867f4 IPCAltBufferLo
0x803867f8 IPCAltBufferHi
0x80386838 MEM_RootListInitialized
0x803868a8 OS_AllocArenaStop
0x803868ac OS_AllocArenaStart
0x803868b0 OS_AllocNumHeaps
Expand All @@ -8865,6 +8916,14 @@
0x803868ec __OSLastInterrupt
0x803868f0 __OSLastInterruptTime
0x803868f8 OSInterruptHandlerTable
0x8038699c PAD_SamplingCallback
0x803869a0 PAD_Spec
0x803869b8 PADResetBits
0x803869bc PADEnabledBits
0x803869c0 PADInitialized
0x803869f4 __PADFixBits
0x80386d30 soState
0x80386d34 soError
0x80386d80 sIsArchiveListInitialized__Q23EGG7Archive
0x80386dc8 gCurrentCntFile__3EGG
0x80386e18 sIsInitialized__Q23EGG7DvdFile
Expand Down
4 changes: 2 additions & 2 deletions source/gamespy/md5c.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void Decode PROTO_LIST((UINT4*, unsigned char*, unsigned int));
static void MD5_memcpy PROTO_LIST((POINTER, POINTER, unsigned int));
static void MD5_memset PROTO_LIST((POINTER, int, unsigned int));

static unsigned char PADDING[64] = {
static unsigned char MD5_PADDING[64] = {
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
Expand Down Expand Up @@ -166,7 +166,7 @@ inline void MD5Final(unsigned char digest[16], /* message digest */
*/
index = (unsigned int)((context->count[0] >> 3) & 0x3f);
padLen = (index < 56) ? (56 - index) : (120 - index);
MD5Update(context, PADDING, padLen);
MD5Update(context, MD5_PADDING, padLen);

/* Append length (before padding) */
MD5Update(context, bits, 8);
Expand Down
4 changes: 2 additions & 2 deletions source/nw4r/lyt/lyt_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
namespace nw4r {
namespace lyt {

static const char* NW4R_LYT_VERSION_STRING =
static const char* VERSION =
"<< NW4R - LYT final build: Mar 8 2008 20:59:41 (0x4201_127) >>";

void LytInit() {
OSRegisterVersion(NW4R_LYT_VERSION_STRING);
OSRegisterVersion(VERSION);
OSInitFastCast();
}

Expand Down
8 changes: 8 additions & 0 deletions source/rvl/ax/rvlAxDspCode.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "rvlAxDspCode.h"

// PAL: 0x80385800
u16 axDspInitVector = 0x10;
// PAL: 0x80385802
u16 axDspResumeVector = 0x37;
// PAL: 0x80385804
u16 axDspSlaveLength = 0x2000;
18 changes: 18 additions & 0 deletions source/rvl/ax/rvlAxDspCode.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once

#include <rk_types.h>

#ifdef __cplusplus
extern "C" {
#endif

// PAL: 0x80385800
extern u16 axDspInitVector;
// PAL: 0x80385802
extern u16 axDspResumeVector;
// PAL: 0x80385804
extern u16 axDspSlaveLength;

#ifdef __cplusplus
}
#endif
Loading

0 comments on commit a249398

Please sign in to comment.