Files
dusklight/libs/dolphin/ar/ar.cpp
T
2021-03-28 22:49:05 +02:00

202 lines
6.2 KiB
C++

//
// Generated By: dol2asm
// Translation Unit: ar
//
#include "dol2asm.h"
#include "dolphin/types.h"
#include "dolphin/ar/ar.h"
//
// Forward References:
//
extern "C" void ARRegisterDMACallback();
extern "C" void ARGetDMAStatus();
extern "C" void ARStartDMA();
extern "C" void ARAlloc();
extern "C" void ARInit();
extern "C" void ARGetSize();
extern "C" static void __ARHandler();
extern "C" void __ARClearInterrupt();
extern "C" void __ARGetInterruptStatus();
extern "C" static void __ARChecksize();
//
// External References:
//
SECTION_INIT void memset();
extern "C" void PPCSync();
extern "C" void OSRegisterVersion();
extern "C" void DCInvalidateRange();
extern "C" void DCFlushRange();
extern "C" void OSSetCurrentContext();
extern "C" void OSClearContext();
extern "C" void OSDisableInterrupts();
extern "C" void OSRestoreInterrupts();
extern "C" void __OSSetInterruptHandler();
extern "C" void __OSUnmaskInterrupts();
//
// Declarations:
//
/* ############################################################################################## */
/* 804518B8-804518BC 0004+00 s=3 e=0 z=0 None .sbss __AR_Callback */
static u8 __AR_Callback[4];
/* 80350554-80350598 0044+00 s=0 e=1 z=0 None .text ARRegisterDMACallback */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void ARRegisterDMACallback() {
nofralloc
#include "asm/dolphin/ar/ar/ARRegisterDMACallback.s"
}
#pragma pop
/* 80350598-803505D4 003C+00 s=0 e=2 z=0 None .text ARGetDMAStatus */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void ARGetDMAStatus() {
nofralloc
#include "asm/dolphin/ar/ar/ARGetDMAStatus.s"
}
#pragma pop
/* 803505D4-803506C4 00F0+00 s=0 e=5 z=0 None .text ARStartDMA */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void ARStartDMA() {
nofralloc
#include "asm/dolphin/ar/ar/ARStartDMA.s"
}
#pragma pop
/* ############################################################################################## */
/* 804518BC-804518C0 0004+00 s=2 e=0 z=0 None .sbss __AR_Size */
static u8 __AR_Size[4];
/* 804518C0-804518C4 0004+00 s=1 e=0 z=0 None .sbss __AR_InternalSize */
static u8 __AR_InternalSize[4];
/* 804518C4-804518C8 0004+00 s=1 e=0 z=0 None .sbss __AR_ExpansionSize */
static u8 __AR_ExpansionSize[4];
/* 804518C8-804518CC 0004+00 s=2 e=0 z=0 None .sbss __AR_StackPointer */
static u8 __AR_StackPointer[4];
/* 804518CC-804518D0 0004+00 s=2 e=0 z=0 None .sbss __AR_FreeBlocks */
static u8 __AR_FreeBlocks[4];
/* 804518D0-804518D4 0004+00 s=2 e=0 z=0 None .sbss __AR_BlockLength */
static u8 __AR_BlockLength[4];
/* 803506C4-8035072C 0068+00 s=0 e=1 z=0 None .text ARAlloc */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void ARAlloc() {
nofralloc
#include "asm/dolphin/ar/ar/ARAlloc.s"
}
#pragma pop
/* ############################################################################################## */
/* 803D1BE8-803D1C30 0044+04 s=1 e=0 z=0 None .data @1 */
SECTION_DATA static u8 lit_1[68 + 4 /* padding */] = {
0x3C, 0x3C, 0x20, 0x44, 0x6F, 0x6C, 0x70, 0x68, 0x69, 0x6E, 0x20, 0x53, 0x44, 0x4B, 0x20, 0x2D,
0x20, 0x41, 0x52, 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, 0x35, 0x3A, 0x30, 0x33, 0x20, 0x28, 0x30, 0x78, 0x32, 0x33, 0x30, 0x31, 0x29,
0x20, 0x3E, 0x3E, 0x00,
/* padding */
0x00, 0x00, 0x00, 0x00,
};
/* 80450A48-80450A50 0004+04 s=1 e=0 z=0 None .sdata __ARVersion */
SECTION_SDATA static void* __ARVersion[1 + 1 /* padding */] = {
(void*)&lit_1,
/* padding */
NULL,
};
/* 804518D4-804518D8 0004+00 s=1 e=0 z=0 None .sbss __AR_init_flag */
static u8 __AR_init_flag[4];
/* 8035072C-803507F0 00C4+00 s=0 e=1 z=0 None .text ARInit */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void ARInit() {
nofralloc
#include "asm/dolphin/ar/ar/ARInit.s"
}
#pragma pop
/* 803507F0-803507F8 0008+00 s=0 e=1 z=0 None .text ARGetSize */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void ARGetSize() {
nofralloc
#include "asm/dolphin/ar/ar/ARGetSize.s"
}
#pragma pop
/* 803507F8-80350870 0078+00 s=1 e=0 z=0 None .text __ARHandler */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm static void __ARHandler() {
nofralloc
#include "asm/dolphin/ar/ar/__ARHandler.s"
}
#pragma pop
/* 80350870-80350890 0020+00 s=0 e=2 z=0 None .text __ARClearInterrupt */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void __ARClearInterrupt() {
nofralloc
#include "asm/dolphin/ar/ar/__ARClearInterrupt.s"
}
#pragma pop
/* 80350890-803508A0 0010+00 s=0 e=2 z=0 None .text __ARGetInterruptStatus */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm void __ARGetInterruptStatus() {
nofralloc
#include "asm/dolphin/ar/ar/__ARGetInterruptStatus.s"
}
#pragma pop
/* 803508A0-80352094 17F4+00 s=1 e=0 z=0 None .text __ARChecksize */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
extern "C" asm static void __ARChecksize() {
nofralloc
#include "asm/dolphin/ar/ar/__ARChecksize.s"
}
#pragma pop