mirror of
https://github.com/zeldaret/tp
synced 2026-06-19 07:47:11 -04:00
85ad8b190d
daBaseNpc_c::setBckAnm and J3DAnmTransform* daBaseNpc_c daBaseNpc_c::setBtpAnm daBaseNpc_c::attnSttsOn daBaseNpc_c::orderEvent daBaseNpc_c::setEnvTevColor daBaseNpc_c::setRoomNo daBaseNpc_c::checkEndAnm attempt CheckCreateHeap daNpcF_addIdx daNpcF_subIdx daNpcF_incIdx daNpcF_decIdx daNpcF_ActorMngr_c::initialize() daNpcF_ActorMngr_c::entry cleanup daNpcF_ActorMngr_c::entry daNpcF_ActorMngr_c::remove daNpcF_ActorMngr_c::getActorP daNpcF_MatAnm_c::calc attempt daNpcF_SPCurve_c::initialize minor fixes daNpcF_Path_c::initialize daNpcF_Path_c::setPathInfo daNpcF_Path_c::chkPassed daNpcF_Path_c::reverse daNpcF_Path_c::setNextIdx daNpcF_Path_c::getNextIdx daNpcF_Path_c::getBeforeIdx daNpcF_Path_c::getBeforePos daNpcF_Path_c::getNextPos daNpcT_MatAnm_c::initialize daNpcT_MatAnm_c::calc daNpcT_addIdx daNpcT_subIdx daNpcT_decIdx daNpcT_Path_c::hermite daNpcT_Path_c::initialize daNpcT_Path_c::setPathInfo attempt daNpcT_Path_c::setNextPathInfo daNpcT_Path_c::reverse daNpcT_Path_c::setNextIdx daNpcT_Path_c::getDstPos attempt daNpcT_DmgStagger_c::setParam Add FLOAT_LABEL where possible fopEn_enemy / fix e_wb move jasper's jsystem work over d_attention / d_demo / d_lib work remove asm clean up dolphin files / work on some rels (#212) * d_a_alldie / d_a_tboxSw / d_a_tag_gstart / d_a_tag_hstop * dolphin OS work / cleanup * dolphin GX work / cleanup * finish changing dolphin files to C * more files into C * match rest of MSL_C math functions * more dolphin files converted to C * remove asm * d_bg_w work * remove asm * d_a_alink work / kytag14 initial changes to d_a_e_yc checkpoint until virtual destructor issue is solved daNpcF_Lookat_c::adjustMoveDisAngle daBaseNpc_c::setMtx daBaseNpc_moveBgActor_c::daBaseNpc_moveBgActor_c() daNpcT_c::ctrlFaceMotion daNpcT_c::ctrlMsgAnm attempt daNpcT_c::initTalk daNpcF_clearMessageTmpBit daNpcF_getDistTableIdx daNpcF_offTmpBit daNpcF_onTmpBit daNpcF_chkTmpBit daNpcF_onEvtBit daNpcF_chkEvtBit daNpcF_c::getDistTableIdx daNpcF_chkPointInArea daNpcF_chkDoBtnEqSpeak daNpcF_getPlayerInfoFromPlayerList attempt daNpcF_pntVsLineSegmentLengthSquare2D daNpcF_c::chkPointInArea daNpcF_c::chkPointInArea daNpcF_c::getAttentionPos daNpcT_chkTmpBit daNpcT_offTmpBit daNpcT_onTmpBit daNpcT_chkEvtBit daNpcT_offEvtBit daNpcT_onEvtBit daNpcT_chkDoBtnIsSpeak daNpcT_getDistTableIdx daBaseNpc_acMngr_c::entry daNpcF_c::initTalk undo override
167 lines
3.6 KiB
C
167 lines
3.6 KiB
C
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: OSMemory
|
|
//
|
|
|
|
#include "dolphin/os/OSMemory.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/os/OSReset.h"
|
|
#include "dolphin/types.h"
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
void DCInvalidateRange();
|
|
void DCFlushRange();
|
|
void __OSUnhandledException();
|
|
void OSRegisterResetFunction();
|
|
extern u8 __OSErrorTable[68 + 12 /* padding */];
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 8033EC6C-8033ECA8 3395AC 003C+00 1/0 0/0 0/0 .text OnReset */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm s32 OnReset(s32 param_0) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSMemory/OnReset.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8033ECA8-8033ED14 3395E8 006C+00 1/1 0/0 0/0 .text MEMIntrruptHandler */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void MEMIntrruptHandler(OSInterrupt interrupt, struct OSContext* context) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSMemory/MEMIntrruptHandler.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8033ED14-8033EDD8 339654 00C4+00 0/0 1/1 0/0 .text OSProtectRange */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void OSProtectRange(u32 channel, void* address, u32 nBytes, u32 control) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSMemory/OSProtectRange.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8033EDD8-8033EE58 339718 0080+00 1/1 0/0 0/0 .text Config24MB */
|
|
static asm void Config24MB(void) {
|
|
// clang-format off
|
|
nofralloc
|
|
|
|
li r7, 0
|
|
lis r4, 0x0000
|
|
addi r4, r4, 0x0002
|
|
lis r3, 0x8000
|
|
addi r3, r3, 0x01FF
|
|
lis r6, 0x0100
|
|
addi r6, r6, 0x0002
|
|
lis r5, 0x8100
|
|
addi r5, r5, 0x00FF
|
|
isync
|
|
mtdbatu 0, r7
|
|
mtdbatl 0, r4
|
|
mtdbatu 0, r3
|
|
isync
|
|
mtibatu 0, r7
|
|
mtibatl 0, r4
|
|
mtibatu 0, r3
|
|
isync
|
|
mtdbatu 2, r7
|
|
mtdbatl 2, r6
|
|
mtdbatu 2, r5
|
|
isync
|
|
mtibatu 2, r7
|
|
mtibatl 2, r6
|
|
mtibatu 2, r5
|
|
isync
|
|
mfmsr r3
|
|
ori r3, r3, 0x30
|
|
mtspr 0x1b, r3
|
|
mflr r3
|
|
mtspr 0x1a, r3
|
|
rfi
|
|
// clang-format on
|
|
}
|
|
|
|
/* 8033EE58-8033EED8 339798 0080+00 1/1 0/0 0/0 .text Config48MB */
|
|
static asm void Config48MB(void) {
|
|
// clang-format off
|
|
nofralloc
|
|
|
|
li r7, 0
|
|
lis r4, 0x0000
|
|
addi r4, r4, 0x0002
|
|
lis r3, 0x8000
|
|
addi r3, r3, 0x03FF
|
|
lis r6, 0x0200
|
|
addi r6, r6, 0x0002
|
|
lis r5, 0x8200
|
|
addi r5, r5, 0x01FF
|
|
isync
|
|
mtdbatu 0, r7
|
|
mtdbatl 0, r4
|
|
mtdbatu 0, r3
|
|
isync
|
|
mtibatu 0, r7
|
|
mtibatl 0, r4
|
|
mtibatu 0, r3
|
|
isync
|
|
mtdbatu 2, r7
|
|
mtdbatl 2, r6
|
|
mtdbatu 2, r5
|
|
isync
|
|
mtibatu 2, r7
|
|
mtibatl 2, r6
|
|
mtibatu 2, r5
|
|
isync
|
|
mfmsr r3
|
|
ori r3, r3, 0x30
|
|
mtspr 0x1b, r3
|
|
mflr r3
|
|
mtspr 0x1a, r3
|
|
rfi
|
|
// clang-format on
|
|
}
|
|
|
|
/* 8033EED8-8033EEF0 339818 0018+00 1/1 0/0 0/0 .text RealMode */
|
|
static asm void RealMode(register void* config){
|
|
// clang-format off
|
|
nofralloc
|
|
|
|
clrlwi config, config, 2
|
|
mtspr 0x1a, config
|
|
mfmsr config
|
|
rlwinm config, config, 0, 0x1c, 0x19
|
|
mtspr 0x1b, config
|
|
rfi
|
|
// clang-format on
|
|
}
|
|
|
|
/* ############################################################################################## */
|
|
/* 803D07D8-803D07E8 -00001 0010+00 1/1 0/0 0/0 .data ResetFunctionInfo */
|
|
static OSResetFunctionInfo ResetFunctionInfo = {
|
|
OnReset,
|
|
0x7F,
|
|
NULL,
|
|
NULL,
|
|
};
|
|
|
|
/* 8033EEF0-8033F008 339830 0118+00 0/0 1/1 0/0 .text __OSInitMemoryProtection */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void __OSInitMemoryProtection(void) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSMemory/__OSInitMemoryProtection.s"
|
|
}
|
|
#pragma pop
|