mirror of https://github.com/zeldaret/tp.git
901 lines
24 KiB
C++
901 lines
24 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: dvd
|
|
//
|
|
|
|
#include "dolphin/dvd/dvd.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.h"
|
|
|
|
//
|
|
// Forward References:
|
|
//
|
|
|
|
extern "C" static void defaultOptionalCommandChecker();
|
|
extern "C" void DVDInit();
|
|
extern "C" static void stateReadingFST();
|
|
extern "C" static void cbForStateReadingFST();
|
|
extern "C" static void cbForStateError();
|
|
extern "C" static void stateTimeout();
|
|
extern "C" static void stateGettingError();
|
|
extern "C" static void CategorizeError();
|
|
extern "C" static void cbForStateGettingError();
|
|
extern "C" static void cbForUnrecoveredError();
|
|
extern "C" static void cbForUnrecoveredErrorRetry();
|
|
extern "C" static void stateGoToRetry();
|
|
extern "C" static void cbForStateGoToRetry();
|
|
extern "C" static void stateCheckID();
|
|
extern "C" static void stateCheckID3();
|
|
extern "C" static void stateCheckID2a();
|
|
extern "C" static void cbForStateCheckID2a();
|
|
extern "C" static void stateCheckID2();
|
|
extern "C" static void cbForStateCheckID1();
|
|
extern "C" static void cbForStateCheckID2();
|
|
extern "C" static void cbForStateCheckID3();
|
|
extern "C" static void AlarmHandler();
|
|
extern "C" static void stateCoverClosed();
|
|
extern "C" static void stateCoverClosed_CMD();
|
|
extern "C" static void cbForStateCoverClosed();
|
|
extern "C" static void stateMotorStopped();
|
|
extern "C" static void cbForStateMotorStopped();
|
|
extern "C" static void stateReady();
|
|
extern "C" static void stateBusy();
|
|
extern "C" static void cbForStateBusy();
|
|
extern "C" void DVDReadAbsAsyncPrio();
|
|
extern "C" void DVDReadAbsAsyncForBS();
|
|
extern "C" void DVDReadDiskID();
|
|
extern "C" void DVDCancelStreamAsync();
|
|
extern "C" void DVDInquiryAsync();
|
|
extern "C" void DVDReset();
|
|
extern "C" void DVDSetAutoInvalidation();
|
|
extern "C" void DVDResume();
|
|
extern "C" static void DVDCancelAsync();
|
|
extern "C" void DVDCancel();
|
|
extern "C" static void cbForCancelSync();
|
|
extern "C" void __DVDPrepareResetAsync();
|
|
extern "C" void __DVDTestAlarm();
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
SECTION_INIT void memcpy();
|
|
extern "C" void OSReport();
|
|
extern "C" void OSPanic();
|
|
extern "C" void OSRegisterVersion();
|
|
extern "C" void OSCreateAlarm();
|
|
extern "C" void OSSetAlarm();
|
|
extern "C" void DCInvalidateRange();
|
|
extern "C" void OSDisableInterrupts();
|
|
extern "C" void OSRestoreInterrupts();
|
|
extern "C" void __OSSetInterruptHandler();
|
|
extern "C" void __OSUnmaskInterrupts();
|
|
extern "C" void OSInitThreadQueue();
|
|
extern "C" void OSSleepThread();
|
|
extern "C" void OSWakeupThread();
|
|
extern "C" void __DVDInitWA();
|
|
extern "C" void __DVDInterruptHandler();
|
|
extern "C" void DVDLowRead();
|
|
extern "C" void DVDLowSeek();
|
|
extern "C" void DVDLowWaitCoverClose();
|
|
extern "C" void DVDLowReadDiskID();
|
|
extern "C" void DVDLowStopMotor();
|
|
extern "C" void DVDLowRequestError();
|
|
extern "C" void DVDLowInquiry();
|
|
extern "C" void DVDLowAudioStream();
|
|
extern "C" void DVDLowRequestAudioStatus();
|
|
extern "C" void DVDLowAudioBufferConfig();
|
|
extern "C" void DVDLowReset();
|
|
extern "C" void DVDLowBreak();
|
|
extern "C" void DVDLowClearCallback();
|
|
extern "C" void __DVDLowTestAlarm();
|
|
extern "C" void __DVDFSInit();
|
|
extern "C" void __DVDClearWaitingQueue();
|
|
extern "C" void __DVDPushWaitingQueue();
|
|
extern "C" void __DVDPopWaitingQueue();
|
|
extern "C" void __DVDCheckWaitingQueue();
|
|
extern "C" void __DVDDequeueWaitingQueue();
|
|
extern "C" void __DVDStoreErrorCode();
|
|
extern "C" void DVDCompareDiskID();
|
|
extern "C" void __DVDPrintFatalMessage();
|
|
extern "C" void __fstLoad();
|
|
extern "C" void memcmp();
|
|
extern "C" extern u8 __DVDThreadQueue[8];
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 803490EC-803490F0 343A2C 0004+00 1/0 0/0 0/0 .text defaultOptionalCommandChecker */
|
|
static void defaultOptionalCommandChecker() {
|
|
/* empty function */
|
|
}
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D1520-803D1568 02E640 0045+03 1/0 0/0 0/0 .data @1 */
|
|
SECTION_DATA static u8 lit_1[69 + 3 /* padding */] = {
|
|
0x3C,
|
|
0x3C,
|
|
0x20,
|
|
0x44,
|
|
0x6F,
|
|
0x6C,
|
|
0x70,
|
|
0x68,
|
|
0x69,
|
|
0x6E,
|
|
0x20,
|
|
0x53,
|
|
0x44,
|
|
0x4B,
|
|
0x20,
|
|
0x2D,
|
|
0x20,
|
|
0x44,
|
|
0x56,
|
|
0x44,
|
|
0x09,
|
|
0x72,
|
|
0x65,
|
|
0x6C,
|
|
0x65,
|
|
0x61,
|
|
0x73,
|
|
0x65,
|
|
0x20,
|
|
0x62,
|
|
0x75,
|
|
0x69,
|
|
0x6C,
|
|
0x64,
|
|
0x3A,
|
|
0x20,
|
|
0x41,
|
|
0x70,
|
|
0x72,
|
|
0x20,
|
|
0x20,
|
|
0x35,
|
|
0x20,
|
|
0x32,
|
|
0x30,
|
|
0x30,
|
|
0x34,
|
|
0x20,
|
|
0x30,
|
|
0x34,
|
|
0x3A,
|
|
0x31,
|
|
0x34,
|
|
0x3A,
|
|
0x35,
|
|
0x31,
|
|
0x20,
|
|
0x28,
|
|
0x30,
|
|
0x78,
|
|
0x32,
|
|
0x33,
|
|
0x30,
|
|
0x31,
|
|
0x29,
|
|
0x20,
|
|
0x3E,
|
|
0x3E,
|
|
0x00,
|
|
/* padding */
|
|
0x00,
|
|
0x00,
|
|
0x00,
|
|
};
|
|
|
|
/* 803D1568-803D1574 02E688 000A+02 1/1 0/0 0/0 .data @18 */
|
|
SECTION_DATA static u8 lit_18[10 + 2 /* padding */] = {
|
|
0x6C,
|
|
0x6F,
|
|
0x61,
|
|
0x64,
|
|
0x20,
|
|
0x66,
|
|
0x73,
|
|
0x74,
|
|
0x0A,
|
|
0x00,
|
|
/* padding */
|
|
0x00,
|
|
0x00,
|
|
};
|
|
|
|
/* 804509E8-804509EC -00001 0004+00 1/1 0/0 0/0 .sdata __DVDVersion */
|
|
SECTION_SDATA static void* __DVDVersion = (void*)&lit_1;
|
|
|
|
/* 80451778-8045177C 000C78 0004+00 24/24 0/0 0/0 .sbss executing */
|
|
static u8 executing[4];
|
|
|
|
/* 8045177C-80451780 000C7C 0004+00 4/4 0/0 0/0 .sbss IDShouldBe */
|
|
static u8 IDShouldBe[4];
|
|
|
|
/* 80451780-80451784 000C80 0004+00 3/3 0/0 0/0 .sbss bootInfo */
|
|
static u8 bootInfo[4];
|
|
|
|
/* 80451784-80451788 000C84 0004+00 8/8 0/0 0/0 .sbss PauseFlag */
|
|
static u8 PauseFlag[4];
|
|
|
|
/* 80451788-8045178C 000C88 0004+00 5/5 0/0 0/0 .sbss PausingFlag */
|
|
static u8 PausingFlag[4];
|
|
|
|
/* 8045178C-80451790 000C8C 0004+00 2/2 0/0 0/0 .sbss AutoFinishing */
|
|
static u8 AutoFinishing[4];
|
|
|
|
/* 80451790-80451794 000C90 0004+00 4/4 0/0 0/0 .sbss FatalErrorFlag */
|
|
static u8 FatalErrorFlag[4];
|
|
|
|
/* 80451794-80451798 000C94 0004+00 6/6 0/0 0/0 .sbss CurrCommand */
|
|
static u8 CurrCommand[4];
|
|
|
|
/* 80451798-8045179C 000C98 0004+00 8/8 0/0 0/0 .sbss Canceling */
|
|
static u8 Canceling[4];
|
|
|
|
/* 8045179C-804517A0 000C9C 0004+00 8/8 0/0 0/0 .sbss CancelCallback */
|
|
static u8 CancelCallback[4];
|
|
|
|
/* 804517A0-804517A4 000CA0 0004+00 9/9 0/0 0/0 .sbss ResumeFromHere */
|
|
static u8 ResumeFromHere[4];
|
|
|
|
/* 804517A4-804517A8 000CA4 0004+00 1/1 0/0 0/0 .sbss CancelLastError */
|
|
static u8 CancelLastError[4];
|
|
|
|
/* 804517A8-804517AC 000CA8 0004+00 1/1 0/0 0/0 .sbss LastError */
|
|
static u8 LastError[4];
|
|
|
|
/* 804517AC-804517B0 000CAC 0004+00 9/9 0/0 0/0 .sbss NumInternalRetry */
|
|
static u8 NumInternalRetry[4];
|
|
|
|
/* 804517B0-804517B4 000CB0 0004+00 3/3 0/0 0/0 .sbss ResetRequired */
|
|
static u8 ResetRequired[4];
|
|
|
|
/* 804517B4-804517B8 000CB4 0004+00 1/1 0/0 0/0 .sbss FirstTimeInBootrom */
|
|
static u8 FirstTimeInBootrom[4];
|
|
|
|
/* 804517B8-804517BC 000CB8 0004+00 5/5 0/0 0/0 .sbss MotorState */
|
|
static u8 MotorState[4];
|
|
|
|
/* 804517BC-804517C0 000CBC 0004+00 1/1 0/0 0/0 .sbss DVDInitialized */
|
|
static u8 DVDInitialized[4];
|
|
|
|
/* 803490F0-803491C8 343A30 00D8+00 0/0 3/3 0/0 .text DVDInit */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDInit() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDInit.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D1574-803D15A8 02E694 0034+00 2/2 0/0 0/0 .data @24 */
|
|
SECTION_DATA static u8 lit_24[52] = {
|
|
0x44, 0x56, 0x44, 0x43, 0x68, 0x61, 0x6E, 0x67, 0x65, 0x44, 0x69, 0x73, 0x6B,
|
|
0x28, 0x29, 0x3A, 0x20, 0x46, 0x53, 0x54, 0x20, 0x69, 0x6E, 0x20, 0x74, 0x68,
|
|
0x65, 0x20, 0x6E, 0x65, 0x77, 0x20, 0x64, 0x69, 0x73, 0x63, 0x20, 0x69, 0x73,
|
|
0x20, 0x74, 0x6F, 0x6F, 0x20, 0x62, 0x69, 0x67, 0x2E, 0x20, 0x20, 0x20, 0x00,
|
|
};
|
|
|
|
/* 8044C900-8044C920 079620 0020+00 8/8 0/0 0/0 .bss BB2 */
|
|
static u8 BB2[32];
|
|
|
|
/* 804509EC-804509F0 00046C 0004+00 6/6 0/0 0/0 .sdata autoInvalidation */
|
|
SECTION_SDATA static u32 autoInvalidation = 0x00000001;
|
|
|
|
/* 804509F0-804509F4 -00001 0004+00 1/1 0/0 0/0 .sdata checkOptionalCommand */
|
|
SECTION_SDATA static void* checkOptionalCommand = (void*)defaultOptionalCommandChecker;
|
|
|
|
/* 804509F4-804509FC 000474 0006+02 2/2 0/0 0/0 .sdata @23 */
|
|
SECTION_SDATA static u8 lit_23[6 + 2 /* padding */] = {
|
|
0x64,
|
|
0x76,
|
|
0x64,
|
|
0x2E,
|
|
0x63,
|
|
0x00,
|
|
/* padding */
|
|
0x00,
|
|
0x00,
|
|
};
|
|
|
|
/* 804517C0-804517C8 000CC0 0004+04 6/6 0/0 0/0 .sbss LastState */
|
|
static u8 LastState[4 + 4 /* padding */];
|
|
|
|
/* 803491C8-8034925C 343B08 0094+00 1/1 0/0 0/0 .text stateReadingFST */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateReadingFST() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateReadingFST.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 8044C920-8044C940 079640 0020+00 2/3 0/0 0/0 .bss CurrDiskID */
|
|
static u8 CurrDiskID[32];
|
|
|
|
/* 8044C940-8044C970 079660 0030+00 10/14 0/0 0/0 .bss DummyCommandBlock */
|
|
static u8 DummyCommandBlock[48];
|
|
|
|
/* 8034925C-803492DC 343B9C 0080+00 2/2 0/0 0/0 .text cbForStateReadingFST */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateReadingFST() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateReadingFST.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 803492DC-80349388 343C1C 00AC+00 12/12 0/0 0/0 .text cbForStateError */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateError() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateError.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349388-803493BC 343CC8 0034+00 2/2 0/0 0/0 .text stateTimeout */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateTimeout() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateTimeout.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 803493BC-803493E4 343CFC 0028+00 1/1 0/0 0/0 .text stateGettingError */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateGettingError() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateGettingError.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 803493E4-80349498 343D24 00B4+00 1/1 0/0 0/0 .text CategorizeError */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void CategorizeError() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/CategorizeError.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349498-803496FC 343DD8 0264+00 6/6 0/0 0/0 .text cbForStateGettingError */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateGettingError() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateGettingError.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 803496FC-80349758 34403C 005C+00 1/1 0/0 0/0 .text cbForUnrecoveredError */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForUnrecoveredError() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForUnrecoveredError.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349758-803497D8 344098 0080+00 1/1 0/0 0/0 .text cbForUnrecoveredErrorRetry */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForUnrecoveredErrorRetry() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForUnrecoveredErrorRetry.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 803497D8-80349800 344118 0028+00 2/2 0/0 0/0 .text stateGoToRetry */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateGoToRetry() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateGoToRetry.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349800-80349940 344140 0140+00 1/1 0/0 0/0 .text cbForStateGoToRetry */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateGoToRetry() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateGoToRetry.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349940-80349A20 344280 00E0+00 1/1 0/0 0/0 .text stateCheckID */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateCheckID() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateCheckID.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349A20-80349A54 344360 0034+00 1/1 0/0 0/0 .text stateCheckID3 */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateCheckID3() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateCheckID3.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349A54-80349A88 344394 0034+00 1/1 0/0 0/0 .text stateCheckID2a */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateCheckID2a() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateCheckID2a.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349A88-80349AF0 3443C8 0068+00 1/1 0/0 0/0 .text cbForStateCheckID2a */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateCheckID2a() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateCheckID2a.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349AF0-80349B28 344430 0038+00 1/1 0/0 0/0 .text stateCheckID2 */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateCheckID2() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateCheckID2.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349B28-80349C24 344468 00FC+00 1/1 0/0 0/0 .text cbForStateCheckID1 */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateCheckID1() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateCheckID1.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349C24-80349CFC 344564 00D8+00 1/1 0/0 0/0 .text cbForStateCheckID2 */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateCheckID2() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateCheckID2.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349CFC-80349DEC 34463C 00F0+00 1/1 0/0 0/0 .text cbForStateCheckID3 */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateCheckID3() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateCheckID3.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349DEC-80349E30 34472C 0044+00 3/3 0/0 0/0 .text AlarmHandler */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void AlarmHandler() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/AlarmHandler.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 8044C970-8044C998 079690 0028+00 1/4 0/0 0/0 .bss ResetAlarm */
|
|
static u8 ResetAlarm[40];
|
|
|
|
/* 80349E30-80349F04 344770 00D4+00 1/1 0/0 0/0 .text stateCoverClosed */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateCoverClosed() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateCoverClosed.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349F04-80349F34 344844 0030+00 1/1 0/0 0/0 .text stateCoverClosed_CMD */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateCoverClosed_CMD() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateCoverClosed_CMD.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349F34-80349F98 344874 0064+00 1/1 0/0 0/0 .text cbForStateCoverClosed */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateCoverClosed() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateCoverClosed.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349F98-80349FC0 3448D8 0028+00 3/3 0/0 0/0 .text stateMotorStopped */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateMotorStopped() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateMotorStopped.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 80349FC0-8034A0AC 344900 00EC+00 4/4 0/0 0/0 .text cbForStateMotorStopped */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateMotorStopped() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateMotorStopped.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034A0AC-8034A394 3449EC 02E8+00 18/18 0/0 0/0 .text stateReady */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateReady() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateReady.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D15A8-803D15EC -00001 0044+00 1/1 0/0 0/0 .data @359 */
|
|
SECTION_DATA static void* lit_359[17] = {
|
|
(void*)(((char*)stateBusy) + 0x318), (void*)(((char*)stateBusy) + 0x6C),
|
|
(void*)(((char*)stateBusy) + 0x10C), (void*)(((char*)stateBusy) + 0x130),
|
|
(void*)(((char*)stateBusy) + 0x6C), (void*)(((char*)stateBusy) + 0x40),
|
|
(void*)(((char*)stateBusy) + 0x150), (void*)(((char*)stateBusy) + 0x1B4),
|
|
(void*)(((char*)stateBusy) + 0x1E0), (void*)(((char*)stateBusy) + 0x214),
|
|
(void*)(((char*)stateBusy) + 0x238), (void*)(((char*)stateBusy) + 0x25C),
|
|
(void*)(((char*)stateBusy) + 0x280), (void*)(((char*)stateBusy) + 0x2A4),
|
|
(void*)(((char*)stateBusy) + 0x2CC), (void*)(((char*)stateBusy) + 0x140),
|
|
(void*)(((char*)stateBusy) + 0x2F8),
|
|
};
|
|
|
|
/* 8034A394-8034A6D4 344CD4 0340+00 4/3 0/0 0/0 .text stateBusy */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void stateBusy() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/stateBusy.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D15EC-803D15F8 02E70C 000C+00 1/1 0/0 0/0 .data ImmCommand */
|
|
SECTION_DATA static u8 ImmCommand[12] = {
|
|
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
|
};
|
|
|
|
/* 804509FC-80450A00 00047C 0004+00 1/1 0/0 0/0 .sdata DmaCommand */
|
|
SECTION_SDATA static u32 DmaCommand = 0xFFFFFFFF;
|
|
|
|
/* 8034A6D4-8034AD2C 345014 0658+00 1/1 0/0 0/0 .text cbForStateBusy */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForStateBusy() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForStateBusy.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034AD2C-8034AE08 34566C 00DC+00 0/0 5/5 0/0 .text DVDReadAbsAsyncPrio */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDReadAbsAsyncPrio() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDReadAbsAsyncPrio.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034AE08-8034AED8 345748 00D0+00 0/0 1/1 0/0 .text DVDReadAbsAsyncForBS */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDReadAbsAsyncForBS() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDReadAbsAsyncForBS.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034AED8-8034AFAC 345818 00D4+00 0/0 2/2 0/0 .text DVDReadDiskID */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDReadDiskID() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDReadDiskID.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034AFAC-8034B068 3458EC 00BC+00 0/0 1/1 0/0 .text DVDCancelStreamAsync */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDCancelStreamAsync() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDCancelStreamAsync.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B068-8034B138 3459A8 00D0+00 0/0 1/1 0/0 .text DVDInquiryAsync */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDInquiryAsync() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDInquiryAsync.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B138-8034B17C 345A78 0044+00 15/15 2/2 0/0 .text DVDReset */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDReset() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDReset.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B17C-8034B1C8 345ABC 004C+00 0/0 6/6 0/0 .text DVDGetCommandBlockStatus */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm int DVDGetCommandBlockStatus(DVDCommandBlock*) {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDGetCommandBlockStatus.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B1C8-8034B274 345B08 00AC+00 0/0 7/7 0/0 .text DVDGetDriveStatus */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm DVDState DVDGetDriveStatus() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDGetDriveStatus.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B274-8034B284 345BB4 0010+00 0/0 1/1 0/0 .text DVDSetAutoInvalidation */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDSetAutoInvalidation() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDSetAutoInvalidation.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B284-8034B2D4 345BC4 0050+00 0/0 1/1 0/0 .text DVDResume */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDResume() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDResume.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D15F8-803D163C 02E718 0041+03 0/0 0/0 0/0 .data @789 */
|
|
#pragma push
|
|
#pragma force_active on
|
|
SECTION_DATA static u8 lit_789[65 + 3 /* padding */] = {
|
|
0x44,
|
|
0x56,
|
|
0x44,
|
|
0x43,
|
|
0x68,
|
|
0x61,
|
|
0x6E,
|
|
0x67,
|
|
0x65,
|
|
0x44,
|
|
0x69,
|
|
0x73,
|
|
0x6B,
|
|
0x41,
|
|
0x73,
|
|
0x79,
|
|
0x6E,
|
|
0x63,
|
|
0x28,
|
|
0x29,
|
|
0x3A,
|
|
0x20,
|
|
0x59,
|
|
0x6F,
|
|
0x75,
|
|
0x20,
|
|
0x63,
|
|
0x61,
|
|
0x6E,
|
|
0x27,
|
|
0x74,
|
|
0x20,
|
|
0x73,
|
|
0x70,
|
|
0x65,
|
|
0x63,
|
|
0x69,
|
|
0x66,
|
|
0x79,
|
|
0x20,
|
|
0x4E,
|
|
0x55,
|
|
0x4C,
|
|
0x4C,
|
|
0x20,
|
|
0x74,
|
|
0x6F,
|
|
0x20,
|
|
0x63,
|
|
0x6F,
|
|
0x6D,
|
|
0x70,
|
|
0x61,
|
|
0x6E,
|
|
0x79,
|
|
0x20,
|
|
0x6E,
|
|
0x61,
|
|
0x6D,
|
|
0x65,
|
|
0x2E,
|
|
0x20,
|
|
0x20,
|
|
0x0A,
|
|
0x00,
|
|
/* padding */
|
|
0x00,
|
|
0x00,
|
|
0x00,
|
|
};
|
|
#pragma pop
|
|
|
|
/* 803D163C-803D1670 -00001 0034+00 1/1 0/0 0/0 .data @956 */
|
|
SECTION_DATA static void* lit_956[13] = {
|
|
(void*)(((char*)DVDCancelAsync) + 0x50), (void*)(((char*)DVDCancelAsync) + 0x50),
|
|
(void*)(((char*)DVDCancelAsync) + 0x70), (void*)(((char*)DVDCancelAsync) + 0xB4),
|
|
(void*)(((char*)DVDCancelAsync) + 0x100), (void*)(((char*)DVDCancelAsync) + 0x17C),
|
|
(void*)(((char*)DVDCancelAsync) + 0x17C), (void*)(((char*)DVDCancelAsync) + 0x17C),
|
|
(void*)(((char*)DVDCancelAsync) + 0x17C), (void*)(((char*)DVDCancelAsync) + 0x254),
|
|
(void*)(((char*)DVDCancelAsync) + 0x254), (void*)(((char*)DVDCancelAsync) + 0x50),
|
|
(void*)(((char*)DVDCancelAsync) + 0x17C),
|
|
};
|
|
|
|
/* 8034B2D4-8034B550 345C14 027C+00 3/2 0/0 0/0 .text DVDCancelAsync */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void DVDCancelAsync() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDCancelAsync.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B550-8034B5FC 345E90 00AC+00 0/0 1/1 1/1 .text DVDCancel */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void DVDCancel() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDCancel.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B5FC-8034B620 345F3C 0024+00 1/1 0/0 0/0 .text cbForCancelSync */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void cbForCancelSync() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/cbForCancelSync.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B620-8034B628 345F60 0008+00 0/0 3/3 0/0 .text DVDGetCurrentDiskID */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm DVDDiskID* DVDGetCurrentDiskID() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDGetCurrentDiskID.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D1670-803D16A8 -00001 0034+04 1/1 0/0 0/0 .data @1060 */
|
|
SECTION_DATA static void* lit_1060[13 + 1 /* padding */] = {
|
|
(void*)(((char*)DVDCheckDisk) + 0x98),
|
|
(void*)(((char*)DVDCheckDisk) + 0xA0),
|
|
(void*)(((char*)DVDCheckDisk) + 0x90),
|
|
(void*)(((char*)DVDCheckDisk) + 0x90),
|
|
(void*)(((char*)DVDCheckDisk) + 0x98),
|
|
(void*)(((char*)DVDCheckDisk) + 0x98),
|
|
(void*)(((char*)DVDCheckDisk) + 0x98),
|
|
(void*)(((char*)DVDCheckDisk) + 0x98),
|
|
(void*)(((char*)DVDCheckDisk) + 0x98),
|
|
(void*)(((char*)DVDCheckDisk) + 0xA0),
|
|
(void*)(((char*)DVDCheckDisk) + 0x90),
|
|
(void*)(((char*)DVDCheckDisk) + 0x90),
|
|
(void*)(((char*)DVDCheckDisk) + 0x98),
|
|
/* padding */
|
|
NULL,
|
|
};
|
|
|
|
/* 8034B628-8034B720 345F68 00F8+00 1/0 4/4 0/0 .text DVDCheckDisk */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm s32 DVDCheckDisk() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/DVDCheckDisk.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B720-8034B83C 346060 011C+00 0/0 1/1 0/0 .text __DVDPrepareResetAsync */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void __DVDPrepareResetAsync() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/__DVDPrepareResetAsync.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8034B83C-8034B874 34617C 0038+00 0/0 1/1 0/0 .text __DVDTestAlarm */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void __DVDTestAlarm() {
|
|
nofralloc
|
|
#include "asm/dolphin/dvd/dvd/__DVDTestAlarm.s"
|
|
}
|
|
#pragma pop
|