// // Generated By: dol2asm // Translation Unit: SIBios // #include "dolphin/si/SIBios.h" #include "dol2asm.h" #include "dolphin/types.h" // // Forward References: // void SIBusy(); void SIIsChanBusy(); static void CompleteTransfer(); static void SIInterruptHandler(); static void SIEnablePollingInterrupt(); void SIRegisterPollingHandler(); void SIUnregisterPollingHandler(); void SIInit(); void __SITransfer(); void SIGetStatus(); void SISetCommand(); void SITransferCommands(); void SISetXY(); void SIEnablePolling(); void SIDisablePolling(); static void SIGetResponseRaw(); void SIGetResponse(); static void AlarmHandler(); void SITransfer(); static void GetTypeCallback(); void SIGetType(); void SIGetTypeAsync(); // // External References: // void OSRegisterVersion(); void OSSetAlarm(); void OSCancelAlarm(); void OSDisableInterrupts(); void OSRestoreInterrupts(); void __OSSetInterruptHandler(); void __OSUnmaskInterrupts(); void OSGetWirelessID(); void OSSetWirelessID(); void __OSGetSystemTime(); void SISetSamplingRate(); void VIGetCurrentLine(); // // Declarations: // /* ############################################################################################## */ /* 803D11B8-803D11FC 02E2D8 0044+00 4/3 0/0 0/0 .data @1 */ SECTION_DATA static char lit_1[] = "<< Dolphin SDK - SI\trelease build: Apr 5 2004 04:14:16 (0x2301) >>"; /* 803D11FC-803D1210 02E31C 0014+00 8/11 0/0 0/0 .data Si */ SECTION_DATA static u8 Si[20] = { 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; /* 80344BA0-80344BC0 33F4E0 0020+00 0/0 1/1 0/0 .text SIBusy */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIBusy() { nofralloc #include "asm/dolphin/si/SIBios/SIBusy.s" } #pragma pop /* ############################################################################################## */ /* 8044C630-8044C6B0 079350 0080+00 9/9 0/0 0/0 .bss Packet */ static u8 Packet[128]; /* 80344BC0-80344BFC 33F500 003C+00 0/0 1/1 0/0 .text SIIsChanBusy */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIIsChanBusy() { nofralloc #include "asm/dolphin/si/SIBios/SIIsChanBusy.s" } #pragma pop /* ############################################################################################## */ /* 8044C6B0-8044C750 0793D0 00A0+00 1/1 0/0 0/0 .bss Alarm */ static u8 Alarm[160]; /* 8044C750-8044C770 079470 0020+00 2/2 0/0 0/0 .bss TypeTime */ static u8 TypeTime[32]; /* 8044C770-8044C790 079490 0020+00 1/1 0/0 0/0 .bss XferTime */ static u8 XferTime[32]; /* 80344BFC-80344EF8 33F53C 02FC+00 1/1 0/0 0/0 .text CompleteTransfer */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off static asm void CompleteTransfer() { nofralloc #include "asm/dolphin/si/SIBios/CompleteTransfer.s" } #pragma pop /* ############################################################################################## */ /* 8044C790-8044C7D0 0794B0 0040+00 1/1 0/0 0/0 .bss TypeCallback */ static u8 TypeCallback[64]; /* 8044C7D0-8044C7E0 0794F0 0010+00 2/3 0/0 0/0 .bss RDSTHandler */ static u8 RDSTHandler[16]; /* 8044C7E0-8044C7F0 079500 0010+00 0/0 0/0 0/0 .bss InputBufferValid */ #pragma push #pragma force_active on static u8 InputBufferValid[16]; #pragma pop /* 8044C7F0-8044C810 079510 0020+00 0/0 0/0 0/0 .bss InputBuffer */ #pragma push #pragma force_active on static u8 InputBuffer[32]; #pragma pop /* 8044C810-8044C820 079530 0010+00 0/2 0/0 0/0 .bss InputBufferVcount */ #pragma push #pragma force_active on static u8 InputBufferVcount[16]; #pragma pop /* 804516F0-804516F4 000BF0 0004+00 1/1 0/0 0/0 .sbss cmdTypeAndStatus$78 */ static u8 cmdTypeAndStatus_78[4]; /* 80344EF8-8034523C 33F838 0344+00 1/1 0/0 0/0 .text SIInterruptHandler */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off static asm void SIInterruptHandler() { nofralloc #include "asm/dolphin/si/SIBios/SIInterruptHandler.s" } #pragma pop /* 8034523C-803452D4 33FB7C 0098+00 2/2 0/0 0/0 .text SIEnablePollingInterrupt */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off static asm void SIEnablePollingInterrupt() { nofralloc #include "asm/dolphin/si/SIBios/SIEnablePollingInterrupt.s" } #pragma pop /* 803452D4-803453A0 33FC14 00CC+00 0/0 1/1 0/0 .text SIRegisterPollingHandler */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIRegisterPollingHandler() { nofralloc #include "asm/dolphin/si/SIBios/SIRegisterPollingHandler.s" } #pragma pop /* 803453A0-80345494 33FCE0 00F4+00 0/0 1/1 0/0 .text SIUnregisterPollingHandler */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIUnregisterPollingHandler() { nofralloc #include "asm/dolphin/si/SIBios/SIUnregisterPollingHandler.s" } #pragma pop /* ############################################################################################## */ /* 804509C8-804509D0 -00001 0004+04 1/1 0/0 0/0 .sdata __SIVersion */ SECTION_SDATA static void* __SIVersion[1 + 1 /* padding */] = { (void*)&lit_1, /* padding */ NULL, }; /* 80345494-80345548 33FDD4 00B4+00 0/0 1/1 0/0 .text SIInit */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIInit() { nofralloc #include "asm/dolphin/si/SIBios/SIInit.s" } #pragma pop /* 80345548-80345754 33FE88 020C+00 3/3 0/0 0/0 .text __SITransfer */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void __SITransfer() { nofralloc #include "asm/dolphin/si/SIBios/__SITransfer.s" } #pragma pop /* ############################################################################################## */ /* 803D1210-803D1220 02E330 0010+00 5/5 0/0 0/0 .data Type */ SECTION_DATA static u8 Type[16] = { 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, }; /* 80345754-803457D0 340094 007C+00 1/1 1/1 0/0 .text SIGetStatus */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIGetStatus() { nofralloc #include "asm/dolphin/si/SIBios/SIGetStatus.s" } #pragma pop /* 803457D0-803457E4 340110 0014+00 0/0 4/4 0/0 .text SISetCommand */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SISetCommand() { nofralloc #include "asm/dolphin/si/SIBios/SISetCommand.s" } #pragma pop /* 803457E4-803457F4 340124 0010+00 0/0 1/1 0/0 .text SITransferCommands */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SITransferCommands() { nofralloc #include "asm/dolphin/si/SIBios/SITransferCommands.s" } #pragma pop /* 803457F4-80345860 340134 006C+00 0/0 1/1 0/0 .text SISetXY */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SISetXY() { nofralloc #include "asm/dolphin/si/SIBios/SISetXY.s" } #pragma pop /* 80345860-803458FC 3401A0 009C+00 0/0 3/3 0/0 .text SIEnablePolling */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIEnablePolling() { nofralloc #include "asm/dolphin/si/SIBios/SIEnablePolling.s" } #pragma pop /* 803458FC-80345968 34023C 006C+00 0/0 6/6 0/0 .text SIDisablePolling */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIDisablePolling() { nofralloc #include "asm/dolphin/si/SIBios/SIDisablePolling.s" } #pragma pop /* 80345968-80345A3C 3402A8 00D4+00 1/1 0/0 0/0 .text SIGetResponseRaw */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off static asm void SIGetResponseRaw() { nofralloc #include "asm/dolphin/si/SIBios/SIGetResponseRaw.s" } #pragma pop /* 80345A3C-80345B00 34037C 00C4+00 0/0 4/4 0/0 .text SIGetResponse */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIGetResponse() { nofralloc #include "asm/dolphin/si/SIBios/SIGetResponse.s" } #pragma pop /* 80345B00-80345B8C 340440 008C+00 1/1 0/0 0/0 .text AlarmHandler */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off static asm void AlarmHandler() { nofralloc #include "asm/dolphin/si/SIBios/AlarmHandler.s" } #pragma pop /* 80345B8C-80345CF8 3404CC 016C+00 3/3 3/3 0/0 .text SITransfer */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SITransfer() { nofralloc #include "asm/dolphin/si/SIBios/SITransfer.s" } #pragma pop /* ############################################################################################## */ /* 804516F4-804516F8 000BF4 0004+00 1/1 0/0 0/0 .sbss cmdTypeAndStatus$372 */ static u8 cmdTypeAndStatus_372[4]; /* 804516F8-80451700 000BF8 0004+04 1/1 1/1 0/0 .sbss __PADFixBits */ extern u8 __PADFixBits[4 + 4 /* padding */]; u8 __PADFixBits[4 + 4 /* padding */]; /* 80345CF8-80345F90 340638 0298+00 2/2 0/0 0/0 .text GetTypeCallback */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off static asm void GetTypeCallback() { nofralloc #include "asm/dolphin/si/SIBios/GetTypeCallback.s" } #pragma pop /* 80345F90-80346154 3408D0 01C4+00 2/2 3/3 0/0 .text SIGetType */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIGetType() { nofralloc #include "asm/dolphin/si/SIBios/SIGetType.s" } #pragma pop /* 80346154-80346290 340A94 013C+00 0/0 6/6 0/0 .text SIGetTypeAsync */ #pragma push #pragma optimization_level 0 #pragma optimizewithasm off asm void SIGetTypeAsync() { nofralloc #include "asm/dolphin/si/SIBios/SIGetTypeAsync.s" } #pragma pop /* ############################################################################################## */ /* 803D1220-803D122C 02E340 000C+00 0/0 0/0 0/0 .data @457 */ #pragma push #pragma force_active on SECTION_DATA static char lit_457[] = "No response"; #pragma pop /* 803D122C-803D123C 02E34C 000F+01 0/0 0/0 0/0 .data @459 */ #pragma push #pragma force_active on SECTION_DATA static char lit_459[] = "N64 controller"; #pragma pop /* 803D123C-803D124C 02E35C 000F+01 0/0 0/0 0/0 .data @460 */ #pragma push #pragma force_active on SECTION_DATA static char lit_460[] = "N64 microphone"; #pragma pop /* 803D124C-803D125C 02E36C 000D+03 0/0 0/0 0/0 .data @461 */ #pragma push #pragma force_active on SECTION_DATA static char lit_461[] = "N64 keyboard"; #pragma pop /* 803D125C-803D1268 02E37C 000A+02 0/0 0/0 0/0 .data @462 */ #pragma push #pragma force_active on SECTION_DATA static char lit_462[] = "N64 mouse"; #pragma pop /* 803D1268-803D1278 02E388 0010+00 0/0 0/0 0/0 .data @463 */ #pragma push #pragma force_active on SECTION_DATA static char lit_463[] = "GameBoy Advance"; #pragma pop /* 803D1278-803D128C 02E398 0014+00 0/0 0/0 0/0 .data @464 */ #pragma push #pragma force_active on SECTION_DATA static char lit_464[] = "Standard controller"; #pragma pop /* 803D128C-803D12A0 02E3AC 0012+02 0/0 0/0 0/0 .data @465 */ #pragma push #pragma force_active on SECTION_DATA static char lit_465[] = "Wireless receiver"; #pragma pop /* 803D12A0-803D12B4 02E3C0 0014+00 0/0 0/0 0/0 .data @466 */ #pragma push #pragma force_active on SECTION_DATA static char lit_466[] = "WaveBird controller"; #pragma pop /* 803D12B4-803D12C0 02E3D4 0009+03 0/0 0/0 0/0 .data @467 */ #pragma push #pragma force_active on SECTION_DATA static char lit_467[] = "Keyboard"; #pragma pop /* 803D12C0-803D12D0 02E3E0 0009+07 0/0 0/0 0/0 .data @468 */ #pragma push #pragma force_active on SECTION_DATA static char lit_468[] = "Steering"; #pragma pop /* 8044C820-8044C830 079540 0010+00 0/0 0/0 0/0 .bss cmdFixDevice$327 */ #pragma push #pragma force_active on static u8 cmdFixDevice[16]; #pragma pop