mirror of
https://github.com/zeldaret/tp
synced 2026-06-08 04:17:17 -04:00
f8979749e3
* work on fop actor / actor mng, daalink, d_a_obj_item * d_a_title mostly decompiled * daalink / d_event / JMessage / dmsg_out_font work * msg_scrn_base / msg_scrn_boss * some work on mDo machine, d_menu_save, d_tresure, and various * remove asm * progress * finish d_menu_save / d_pane_class_alpha / d_pane_class / rename some data * rename more data * remove asm / progress * match all of d_pane_class * fixes / some dKankyo doc * bunch of j2d work. d_drawlist / d_attention cleanup * progress / asm * cleanup wip * decompile JStage * setup some more JStudio structs * set up d_demo classes * some d_demo work * cleanup dolphin os stuff * some initial dEvent documentation * some At collision documentation * match JUTConsole::doDraw * dbgs work / split up some of d_a_alink into .inc files * d_a_alink_spinner work
85 lines
2.4 KiB
C++
85 lines
2.4 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: OSAlloc
|
|
//
|
|
|
|
#include "dolphin/os/OSAlloc.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.h"
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 8033B078-8033B124 3359B8 00AC+00 1/1 0/0 0/0 .text DLInsert */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
static asm void* DLInsert(void* param_0, void* param_1) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSAlloc/DLInsert.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 80451640-80451644 000B40 0004+00 3/3 0/0 0/0 .sbss HeapArray */
|
|
static u8 HeapArray[4];
|
|
|
|
/* 8033B124-8033B1A0 335A64 007C+00 0/0 1/1 0/0 .text OSFreeToHeap */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void OSFreeToHeap(OSHeapHandle heap, void* ptr) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSAlloc/OSFreeToHeap.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 80450990-80450998 000410 0004+04 2/2 1/1 0/0 .sdata __OSCurrHeap */
|
|
SECTION_SDATA extern u32 __OSCurrHeap[1 + 1 /* padding */] = {
|
|
0xFFFFFFFF,
|
|
/* padding */
|
|
0x00000000,
|
|
};
|
|
|
|
/* 8033B1A0-8033B1B0 335AE0 0010+00 0/0 1/1 0/0 .text OSSetCurrentHeap */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void OSSetCurrentHeap(OSHeapHandle heap) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSAlloc/OSSetCurrentHeap.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* ############################################################################################## */
|
|
/* 80451644-80451648 000B44 0004+00 2/2 0/0 0/0 .sbss NumHeaps */
|
|
static u8 NumHeaps[4];
|
|
|
|
/* 80451648-8045164C 000B48 0004+00 1/1 0/0 0/0 .sbss ArenaStart */
|
|
static u8 ArenaStart[4];
|
|
|
|
/* 8045164C-80451650 000B4C 0004+00 1/1 0/0 0/0 .sbss ArenaEnd */
|
|
static u8 ArenaEnd[4];
|
|
|
|
/* 8033B1B0-8033B220 335AF0 0070+00 0/0 2/2 0/0 .text OSInitAlloc */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void* OSInitAlloc(void* lo, void* hi, s32 maxHeaps) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSAlloc/OSInitAlloc.s"
|
|
}
|
|
#pragma pop
|
|
|
|
/* 8033B220-8033B28C 335B60 006C+00 0/0 1/1 0/0 .text OSCreateHeap */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm OSHeapHandle OSCreateHeap(void* start, void* end) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSAlloc/OSCreateHeap.s"
|
|
}
|
|
#pragma pop
|