Start work on malloc.c

This commit is contained in:
gamemasterplc 2023-11-21 20:53:03 -06:00
parent 0b4ae7caba
commit 237bf72a2c
6 changed files with 121 additions and 28 deletions

View file

@ -13,6 +13,15 @@ Sections:
.sdata2 type:rodata
.sbss2 type:bss
game/malloc.c:
.text start:0x8000A558 end:0x8000A938
.data start:0x80121F50 end:0x80121FC8
.bss start:0x80145A80 end:0x80145A98
game/memory.c:
.text start:0x8000A938 end:0x8000AEF0
.data start:0x80121FC8 end:0x80122140
Runtime.PPCEABI.H/global_destructor_chain.c:
.text start:0x800E2008 end:0x800E2068
.dtors start:0x8011DCE8 end:0x8011DCEC

View file

@ -101,29 +101,29 @@ fn_8000A1A4 = .text:0x8000A1A4; // type:function size:0x6C
fn_8000A210 = .text:0x8000A210; // type:function size:0x254
fn_8000A464 = .text:0x8000A464; // type:function size:0x74
fn_8000A4D8 = .text:0x8000A4D8; // type:function size:0x80
fn_8000A558 = .text:0x8000A558; // type:function size:0x12C
fn_8000A684 = .text:0x8000A684; // type:function size:0x30
fn_8000A6B4 = .text:0x8000A6B4; // type:function size:0x2C
fn_8000A6E0 = .text:0x8000A6E0; // type:function size:0x54
fn_8000A734 = .text:0x8000A734; // type:function size:0x64
fn_8000A798 = .text:0x8000A798; // type:function size:0x6C
fn_8000A804 = .text:0x8000A804; // type:function size:0x38
fn_8000A83C = .text:0x8000A83C; // type:function size:0x54
fn_8000A890 = .text:0x8000A890; // type:function size:0x3C
fn_8000A8CC = .text:0x8000A8CC; // type:function size:0x3C
fn_8000A908 = .text:0x8000A908; // type:function size:0x18
fn_8000A920 = .text:0x8000A920; // type:function size:0x18
fn_8000A938 = .text:0x8000A938; // type:function size:0x4C
fn_8000A984 = .text:0x8000A984; // type:function size:0x40
fn_8000A9C4 = .text:0x8000A9C4; // type:function size:0x3C
fn_8000AA00 = .text:0x8000AA00; // type:function size:0x108
fn_8000AB08 = .text:0x8000AB08; // type:function size:0x7C
fn_8000AB84 = .text:0x8000AB84; // type:function size:0x12C
fn_8000ACB0 = .text:0x8000ACB0; // type:function size:0x48
fn_8000ACF8 = .text:0x8000ACF8; // type:function size:0x44
fn_8000AD3C = .text:0x8000AD3C; // type:function size:0xC
fn_8000AD48 = .text:0x8000AD48; // type:function size:0x158
fn_8000AEA0 = .text:0x8000AEA0; // type:function size:0x50
HuMemInitAll = .text:0x8000A558; // type:function size:0x12C
HuMemInit = .text:0x8000A684; // type:function size:0x30
HuMemDCFlushAll = .text:0x8000A6B4; // type:function size:0x2C
HuMemDCFlush = .text:0x8000A6E0; // type:function size:0x54
HuMemDirectMalloc = .text:0x8000A734; // type:function size:0x64
HuMemDirectMallocNum = .text:0x8000A798; // type:function size:0x6C
HuMemDirectFree = .text:0x8000A804; // type:function size:0x38
HuMemDirectFreeNum = .text:0x8000A83C; // type:function size:0x54
HuMemUsedMallocSizeGet = .text:0x8000A890; // type:function size:0x3C
HuMemUsedMallocBlockGet = .text:0x8000A8CC; // type:function size:0x3C
HuMemHeapSizeGet = .text:0x8000A908; // type:function size:0x18
HuMemHeapPtrGet = .text:0x8000A920; // type:function size:0x18
HuMemHeapInit = .text:0x8000A938; // type:function size:0x4C
HuMemMemoryAllocNum = .text:0x8000A984; // type:function size:0x40
HuMemMemoryAlloc = .text:0x8000A9C4; // type:function size:0x3C
HuMemMemoryAlloc2 = .text:0x8000AA00; // type:function size:0x108
HuMemMemoryFreeNum = .text:0x8000AB08; // type:function size:0x7C
HuMemMemoryFree = .text:0x8000AB84; // type:function size:0x12C
HuMemUsedMemorySizeGet = .text:0x8000ACB0; // type:function size:0x48
HuMemUsedMemoryBlockGet = .text:0x8000ACF8; // type:function size:0x44
HuMemMemoryAllocSizeGet = .text:0x8000AD3C; // type:function size:0xC
HuMemHeapDump = .text:0x8000AD48; // type:function size:0x158
HuMemMemorySizeGet = .text:0x8000AEA0; // type:function size:0x50
fn_8000AEF0 = .text:0x8000AEF0; // type:function size:0x64
fn_8000AF54 = .text:0x8000AF54; // type:function size:0xA0
fn_8000AFF4 = .text:0x8000AFF4; // type:function size:0x15C
@ -2053,13 +2053,13 @@ OSCancelAlarm = .text:0x800B5008; // type:function size:0x11C
DecrementerExceptionCallback = .text:0x800B5124; // type:function size:0x230 scope:local
DecrementerExceptionHandler = .text:0x800B5354; // type:function size:0x50 scope:local
fn_800B53A4 = .text:0x800B53A4; // type:function size:0xAC
fn_800B5450 = .text:0x800B5450; // type:function size:0xFC
OSAllocFromHeap = .text:0x800B5450; // type:function size:0xFC
fn_800B554C = .text:0x800B554C; // type:function size:0x284
fn_800B57D0 = .text:0x800B57D0; // type:function size:0x7C
OSSetCurrentHeap = .text:0x800B584C; // type:function size:0x10
OSInitAlloc = .text:0x800B585C; // type:function size:0x70
OSCreateHeap = .text:0x800B58CC; // type:function size:0x6C
fn_800B5938 = .text:0x800B5938; // type:function size:0x360
OSCheckHeap = .text:0x800B5938; // type:function size:0x360
fn_800B5C98 = .text:0x800B5C98; // type:function size:0x104
OSGetArenaHi = .text:0x800B5D9C; // type:function size:0x8 scope:global
OSGetArenaLo = .text:0x800B5DA4; // type:function size:0x8 scope:global
@ -4840,7 +4840,7 @@ lbl_8011FCBE = .data:0x8011FCBE; // type:object size:0x122
lbl_8011FDE0 = .data:0x8011FDE0; // type:object size:0x20
lbl_8011FE00 = .data:0x8011FE00; // type:object size:0x2000
lbl_80121E00 = .data:0x80121E00; // type:object size:0x150
lbl_80121F50 = .data:0x80121F50; // type:object size:0x78
HeapSizeTbl = .data:0x80121F50; // type:object size:0x78 scope:local
lbl_80121FC8 = .data:0x80121FC8; // type:object size:0x50
lbl_80122018 = .data:0x80122018; // type:object size:0x128
fcoltbl = .data:0x80122140; // type:object size:0x40
@ -5356,7 +5356,7 @@ RumbleData = .bss:0x80142810; // type:object size:0x30
ReadDataStat = .bss:0x80142840; // type:object size:0x2E00 data:4byte
TextBuffer = .bss:0x80145640; // type:object size:0x400
lbl_80145A40 = .bss:0x80145A40; // type:object size:0x40
lbl_80145A80 = .bss:0x80145A80; // type:object size:0x18
HeapTbl = .bss:0x80145A80; // type:object size:0x14 scope:local
lbl_80145A98 = .bss:0x80145A98; // type:object size:0x6800
lbl_8014C298 = .bss:0x8014C298; // type:object size:0x100 data:byte
lbl_8014C398 = .bss:0x8014C398; // type:object size:0xF8
@ -5840,7 +5840,7 @@ lbl_801D38B0 = .sdata:0x801D38B0; // type:object size:0x2 data:2byte
lbl_801D38B2 = .sdata:0x801D38B2; // type:object size:0x2 data:2byte
lbl_801D38B4 = .sdata:0x801D38B4; // type:object size:0x2 data:2byte
lbl_801D38B6 = .sdata:0x801D38B6; // type:object size:0x2 data:2byte
lbl_801D38B8 = .sdata:0x801D38B8; // type:object size:0x8 data:4byte
__OSCurrHeap = .sdata:0x801D38B8; // type:object size:0x8 data:4byte
__OSArenaLo = .sdata:0x801D38C0; // type:object size:0x4 scope:local data:4byte
@32 = .sdata:0x801D38C8; // type:object size:0x2 scope:local data:string
lbl_801D38D0 = .sdata:0x801D38D0; // type:object size:0x8 data:2byte