From e1285c8515933178b37abc8e952be63be9a9a418 Mon Sep 17 00:00:00 2001 From: gijs Date: Wed, 27 Sep 2023 11:49:19 +0200 Subject: [PATCH] Identified more `osPfs` functions and split them into their own files --- linker_scripts/symbols/addr.txt | 7 +++++++ splat.yaml | 24 +++++++++++++----------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/linker_scripts/symbols/addr.txt b/linker_scripts/symbols/addr.txt index 6d5b74e..1c190b8 100644 --- a/linker_scripts/symbols/addr.txt +++ b/linker_scripts/symbols/addr.txt @@ -15,6 +15,10 @@ __osSetWatchLo = 0x8009A730; // rom:0x2AB30 osPfsRepairId = 0x80096E60; // rom:0x27260 osPfsFreeBlocks = 0x80096980; // rom:0x26D80 osPfsFindFile = 0x800967C0; // rom:0x26BC0 +osPfsDeleteFile = 0x80095FC0; // rom:0x263C0 +__osPfsReleasePages = 0x8009616C; // rom:0x2656C +osPfsFileState = 0x80096620; // rom:0x26A20 +osPfsReadWriteFile = 0x800961E0; // rom:0x265E0 osAiSetNextBuffer = 0x8008C550; // rom:0x1C950 __osAiDeviceBusy = 0x80099BC0; // rom:0x29FC0 @@ -599,6 +603,8 @@ __add_0x594284 = 0x8009DD28; __log_lha_error = 0x8007BB90; +__osPiTable = 0x800AA41C; // rom:0x3A81C +osEPiLinkHandle = 0x8008BCE0l // rom:0x1C0E0 CartRomHandle = 0x800C4C50; // size:0x2A osCartRomInit = 0x8008BD30; PTR_CART_ROM_HANDLE = 0x800E7A20; @@ -689,6 +695,7 @@ osStopThread = 0x80094B40; osSpTaskYield = 0x80093C40; sprintf = 0x800934B0; +alHeapInit = 0x8008F850; // rom:0x1FC50 alHeapDBAlloc = 0x8008F890; alSaveNew = 0x8008CDD8; alMainBusNew = 0x8008CD7C; diff --git a/splat.yaml b/splat.yaml index 22a6ed8..e2b96fc 100644 --- a/splat.yaml +++ b/splat.yaml @@ -56,10 +56,10 @@ segments: - [0x1060, c, "main"] # Unsure about these - [0x4AC0, asm, "_ob_overconfident_mother"] - - [0x5FC0, asm] - - [0x68E0, asm] - - [0x8700, asm] - - [0xA370, asm, "lha"] + - [0x5FC0, asm, "_ob_rabid_jar"] + # - [0x68E0, asm] + # - [0x8700, asm] + # - [0xA370, asm, "lha"] - [0xFC80, c, "boot"] - [0xFDC0, c, "_ob_spooky_degree"] @@ -147,7 +147,7 @@ segments: - [0x1BCC0, asm, "libultra/io/pimgr"] - [0x1BE50, asm, "libultra/io/epirawdma"] - [0x1C040, asm, "libultra/io/epidma"] - - [0x1C0E0, asm] + - [0x1C0E0, asm, "libultra/io/epilinkhandle"] - [0x1C130, asm, "libultra/io/cartrominit"] - [0x1C2B0, asm, "libultra/io/devmgr"] - [0x1C670, asm, "libultra/io/piacs"] @@ -155,7 +155,7 @@ segments: - [0x1C810, asm, "libultra/io/aigetlen"] - [0x1C820, asm, "libultra/io/aigetstat"] - [0x1C830, asm, "libultra/io/aisetfreq"] - - [0x1C950, asm] + - [0x1C950, asm, "libultra/io/aisetnextbuf"] - [0x1C9F0, asm, "libultra/audio/drvrNew"] - [0x1D220, asm, "libultra/audio/load"] - [0x1DD30, asm, "libultra/audio/auxbus"] @@ -165,7 +165,7 @@ segments: - [0x1EF30, asm, "libultra/audio/reverb"] - [0x1FAD0, asm, "libultra/audio/save"] - [0x1FBA0, asm, "libultra/audio/sl"] - - [0x1FC50, asm] + - [0x1FC50, asm, "libultra/audio/heapinit"] - [0x1FC90, asm, "libultra/audio/heapalloc"] - [0x1FCE0, asm, "libultra/audio/copy"] - [0x1FD20, asm, "libultra/audio/synthesizer"] @@ -227,8 +227,9 @@ segments: - [0x25C20, asm, "libultra/io/viswapcontext"] - [0x25F30, asm, "libultra/io/viblack"] - [0x25F90, asm, "libultra/io/pfsallocatefile"] - - [0x263C0, asm] - - [0x265E0, asm] + - [0x263C0, asm, "libultra/io/pfsdeletefile"] + - [0x265E0, asm, "libultra/io/pfsreadwritefile"] + - [0x26A20, asm, "libultra/io/pfsfilestate"] - [0x26BC0, asm, "libultra/io/pfssearchfile"] - [0x26D80, asm, "libultra/io/pfsfreeblocks"] - [0x26E90, asm, "libultra/io/pfsinitpak"] @@ -326,8 +327,9 @@ segments: - [0x3E100, data] - - [0x3E330, rodata, "_ob_overconfident_mother"] - - [0x3E460, rodata] + - [0x3E330, rodata] + # - [0x3E3E0, rodata] + # - [0x3E460, rodata] - [0x3E7A0, .rodata, "_ob_spooky_degree"] - [0x3E7C0, .rodata, "_ob_ambitious_fold"]