Files
tp/libs/dolphin/os/OSResetSW.cpp
T

85 lines
2.3 KiB
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: OSResetSW
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
#include "dolphin/os/OSResetSW.h"
2021-03-28 22:49:05 +02:00
#include "dol2asm.h"
#include "dolphin/types.h"
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Forward References:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
extern "C" void __OSResetSWInterruptHandler();
extern "C" static void OSGetResetButtonState();
extern "C" void OSGetResetSwitchState();
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// External References:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
extern "C" void OSDisableInterrupts();
extern "C" void OSRestoreInterrupts();
extern "C" void __OSMaskInterrupts();
extern "C" void __OSGetSystemTime();
extern "C" void __div2i();
extern "C" extern u8 __OSStartTime[4];
extern "C" extern u8 data_80451634[4];
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Declarations:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
/* ############################################################################################## */
2021-04-06 18:00:35 +02:00
/* 804516A0-804516A4 000BA0 0004+00 1/1 0/0 0/0 .sbss ResetCallback */
2021-03-28 22:49:05 +02:00
static u8 ResetCallback[4];
2021-04-06 18:00:35 +02:00
/* 804516A4-804516A8 000BA4 0004+00 2/2 0/0 0/0 .sbss Down */
2021-03-28 22:49:05 +02:00
static u8 Down[4];
2021-04-06 18:00:35 +02:00
/* 804516A8-804516B0 000BA8 0004+04 2/2 0/0 0/0 .sbss LastState */
2021-03-28 22:49:05 +02:00
static u8 LastState[4 + 4 /* padding */];
2021-04-06 18:00:35 +02:00
/* 804516B0-804516B4 000BB0 0004+00 1/1 0/0 0/0 .sbss HoldUp */
2021-03-28 22:49:05 +02:00
static u8 HoldUp[4];
2021-04-06 18:00:35 +02:00
/* 804516B4-804516B8 000BB4 0004+00 1/1 0/0 0/0 .sbss None */
2021-03-28 22:49:05 +02:00
static u8 data_804516B4[4];
2021-04-06 18:00:35 +02:00
/* 804516B8-804516BC 000BB8 0004+00 2/2 0/0 0/0 .sbss HoldDown */
2021-03-28 22:49:05 +02:00
static u8 HoldDown[4];
2021-04-06 18:00:35 +02:00
/* 804516BC-804516C0 000BBC 0004+00 2/2 0/0 0/0 .sbss None */
2021-03-28 22:49:05 +02:00
static u8 data_804516BC[4];
2021-04-06 18:00:35 +02:00
/* 8033FAE4-8033FBD8 33A424 00F4+00 0/0 1/1 0/0 .text __OSResetSWInterruptHandler */
2021-03-28 22:49:05 +02:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
2021-04-06 18:00:35 +02:00
asm void __OSResetSWInterruptHandler() {
2021-04-01 02:07:58 +02:00
nofralloc
2021-03-28 22:49:05 +02:00
#include "asm/dolphin/os/OSResetSW/__OSResetSWInterruptHandler.s"
}
#pragma pop
2021-04-06 18:00:35 +02:00
/* 8033FBD8-8033FE70 33A518 0298+00 1/1 0/0 0/0 .text OSGetResetButtonState */
2021-03-28 22:49:05 +02:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
2021-04-06 18:00:35 +02:00
static asm void OSGetResetButtonState() {
2021-04-01 02:07:58 +02:00
nofralloc
2021-03-28 22:49:05 +02:00
#include "asm/dolphin/os/OSResetSW/OSGetResetButtonState.s"
}
#pragma pop
2021-04-06 18:00:35 +02:00
/* 8033FE70-8033FE90 33A7B0 0020+00 0/0 1/1 0/0 .text OSGetResetSwitchState */
2021-03-28 22:49:05 +02:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
2021-04-06 18:00:35 +02:00
asm void OSGetResetSwitchState() {
2021-04-01 02:07:58 +02:00
nofralloc
2021-03-28 22:49:05 +02:00
#include "asm/dolphin/os/OSResetSW/OSGetResetSwitchState.s"
}
#pragma pop