Identify most of the remaining libultra and libleo files and move to their respective dirs.

This commit is contained in:
ProjectRevoTPP 2022-09-24 19:58:38 -04:00
parent 50d3135d5f
commit 2b2576d464
4 changed files with 274 additions and 183 deletions

View File

@ -12,7 +12,7 @@ ROM := $(TARGET).z64
ELF := $(BUILD_DIR)/$(TARGET).elf
LD_SCRIPT := $(TARGET).ld
LD_MAP := $(BUILD_DIR)/$(TARGET).map
ASM_DIRS := asm asm/os
ASM_DIRS := asm asm/os asm/libleo asm/libultra
DATA_DIRS := bin assets
SRC_DIRS := $(shell find src -type d)
@ -52,7 +52,11 @@ OPTFLAGS := -O2
$(foreach dir,$(SRC_DIRS) $(ASM_DIRS) $(DATA_DIRS) $(COMPRESSED_DIRS) $(MAP_DIRS) $(BGM_DIRS),$(shell mkdir -p build/$(dir)))
build/src/os/O1/%.o: OPTFLAGS := -O1
# Libultra O1 files
build/src/os/O1/osSendMesg.c.o: OPTFLAGS := -O1
build/src/os/O1/osStopThread.c.o: OPTFLAGS := -O1
build/src/os/O1/osRecvMesg.c.o: OPTFLAGS := -O1
build/src/os/O1/pigetcmdq.c.o: OPTFLAGS := -O1
default: all

View File

@ -119,186 +119,191 @@ segments:
- [0x518A0, asm]
- [0x51B20, asm]
- [0x51BC0, asm]
- [0x51C50, asm, leofunc]
- [0x520C0, asm, leoint]
- [0x52AC0, asm, leocmdex]
- [0x53150, asm, leoread]
- [0x53310, asm, lbatobyte]
- [0x53460, asm]
- [0x535C0, asm, inquiry]
- [0x53710, asm]
- [0x53770, asm, readdiskid]
- [0x53900, asm, leomecha]
- [0x54250, asm, spdlmotor]
- [0x54310, asm]
- [0x55400, asm, setrtc]
- [0x554C0, asm]
- [0x55570, asm, leomseq_tbl]
- [0x55720, asm, leomotor]
- [0x55810, asm, leomode_sel]
- [0x558C0, asm]
- [0x55960, asm, leoutil]
- [0x55BB0, asm, rezero]
- [0x55C50, asm, bytetolba]
- [0x55DB0, asm, leoreset]
- [0x55ED0, asm, leotranslat]
- [0x56170, asm, leotimer]
- [0x56680, asm]
- [0x567B0, asm, cjcreateleomanager]
- [0x569F0, asm, leointerrupt]
- [0x570C0, asm, driveexist]
- [0x57190, asm]
- [0x57230, asm, leotestunit]
- [0x57270, asm, readrtc]
- [0x572D0, asm]
- [0x57390, asm, seek]
- [0x573F0, asm, piacs]
- [0x574B0, asm, setcause]
- [0x51C50, asm, libleo/leofunc]
- [0x520C0, asm, libleo/leoint]
- [0x52AC0, asm, libleo/leocmdex]
- [0x53150, asm, libleo/leoread]
- [0x53310, asm, libleo/lbatobyte]
- [0x53460, asm, libleo/driverominit]
- [0x535C0, asm, libleo/inquiry]
- [0x53710, asm, libleo/readdiskid]
- [0x53770, asm, libleo/leord_diskid]
- [0x53900, asm, libleo/leomecha]
- [0x54250, asm, libleo/spdlmotor]
- [0x54310, asm, libleo/leoc2ecc]
- [0x55400, asm, libleo/setrtc]
- [0x55570, asm, libleo/leomseq_tbl]
- [0x55720, asm, libleo/leomotor]
- [0x55810, asm, libleo/leomode_sel]
- [0x558C0, asm, libleo/leord_capa]
- [0x55960, asm, libleo/leoutil]
- [0x55BB0, asm, libleo/rezero]
- [0x55C50, asm, libleo/bytetolba]
- [0x55DB0, asm, libleo/leoreset]
- [0x55ED0, asm, libleo/leotranslat]
- [0x56170, asm, libleo/leotimer]
- [0x56680, asm, libleo/leowrite]
- [0x567B0, asm, libleo/cjcreateleomanager]
- [0x569F0, asm, libleo/leointerrupt]
- [0x570C0, asm, libleo/driveexist]
- [0x57190, asm, libleo/testunitready]
- [0x57230, asm, libleo/leotestunit]
- [0x57270, asm, libleo/readrtc]
- [0x572D0, asm, libleo/leoseek]
- [0x57390, asm, libleo/seek]
- [0x573F0, asm, libultra/piacs]
- [0x574B0, asm, libultra/setcause]
- [0x574C0, c, os/O1/osSendMesg]
- [0x57610, c, os/O1/osStopThread]
- [0x576D0, c, os/O1/osRecvMesg]
- [0x57810, asm, setintmask]
- [0x578B0, asm, thread]
- [0x578F0, asm, scale]
- [0x57990, asm]
- [0x57B50, asm, sl]
- [0x57C10, asm, sptask]
- [0x57F00, asm, destroythread]
- [0x58010, asm, ll]
- [0x582D0, asm]
- [0x58C70, asm]
- [0x58EC0, asm, gbpakcheckconnector]
- [0x59350, asm, gbpakpower]
- [0x59460, asm, controller]
- [0x597A0, asm, contreaddata]
- [0x598C0, asm]
- [0x59A10, asm]
- [0x59BF0, asm]
- [0x59C00, asm, conteeplongread]
- [0x59C90, asm, virtualtophysical]
- [0x59D10, asm]
- [0x59DA0, asm]
- [0x5A0F0, asm]
- [0x5A100, asm, gbpakinit]
- [0x5A330, asm, pfsgetstatus]
- [0x5A560, asm]
- [0x5B1C0, asm]
- [0x5B450, asm, sprawdma]
- [0x5B4E0, asm, sirawdma]
- [0x5B590, asm]
- [0x5B5E0, asm, viblack]
- [0x5B650, asm, sirawread]
- [0x5B6A0, asm, sptaskyield]
- [0x5B6C0, asm, lookatref]
- [0x5BB50, asm, mtxutil]
- [0x5BDC0, asm, visetmode]
- [0x5BE30, asm]
- [0x5C2A0, asm]
- [0x5C420, asm, devmgr]
- [0x5C830, asm, pirawdma]
- [0x5C900, hasm, os/osGetCount] # RNG
- [0x5C910, asm, conteepprobe]
- [0x5C980, asm, conteepwrite]
- [0x5CD50, asm]
- [0x5CE70, asm, contpfs]
- [0x5D9F0, asm, seteventmesg]
- [0x5DAB0, asm]
- [0x5DAC0, asm]
- [0x5DCF0, asm]
- [0x5DDB0, asm]
- [0x5DDE0, asm, xprintf]
- [0x5EAA0, asm, gbpakgetstatus]
- [0x5EC20, asm, sprintf]
- [0x5ECA0, asm]
- [0x5ECF0, asm]
- [0x5EDD0, asm]
- [0x5EE10, asm, syncprintf]
- [0x5EE50, asm, string]
- [0x5EEF0, asm]
- [0x5EFA0, asm]
- [0x5EFD0, asm]
- [0x5F050, asm]
- [0x5F140, asm, sp]
- [0x5F170, asm, si]
- [0x5F1A0, asm, translate] # gu
- [0x5F240, asm, jammesg]
- [0x5F390, asm, setthreadpri]
- [0x5F470, asm, getthreadpri]
- [0x5F490, asm, epirawread]
- [0x5F5F0, asm, viswapbuf]
- [0x5F640, asm, epirawdma]
- [0x5F820, asm, sptaskyielded]
- [0x5F8A0, asm]
- [0x5FA40, asm]
- [0x5FB60, asm]
- [0x5FD50, asm, gettime]
- [0x5FDE0, asm]
- [0x60860, asm]
- [0x61010, asm]
- [0x61270, asm]
- [0x61EF0, asm]
- [0x621F0, asm]
- [0x62D40, asm]
- [0x62D60, asm]
- [0x62E20, asm, setglobalintmask]
- [0x62E70, asm, aisetfreq]
- [0x62FC0, asm, dpctr]
- [0x63010, asm]
- [0x63020, asm, normalize]
- [0x630B0, asm]
- [0x630C0, asm]
- [0x630D0, asm, dpsetstat]
- [0x630E0, asm]
- [0x63160, asm]
- [0x63470, asm, resetglobalintmask]
- [0x634D0, asm, ortho]
- [0x63690, asm]
- [0x63720, asm]
- [0x63860, asm, viswapcontext]
- [0x57810, asm, libultra/setintmask]
- [0x578B0, asm, libultra/thread]
- [0x578F0, asm, libultra/scale]
- [0x57990, asm, libultra/sinf]
- [0x57B50, asm, libultra/sl]
- [0x57C10, asm, libultra/sptask]
- [0x57F00, asm, libultra/destroythread]
- [0x58010, asm, libultra/ll]
- [0x582D0, asm, libultra/exceptasm]
- [0x58BD0, asm, libultra/bzero]
- [0x58C70, asm] # unknown file(s)
- [0x58EC0, asm, libultra/gbpakcheckconnector]
- [0x59350, asm, libultra/gbpakpower]
- [0x59460, asm, libultra/controller]
- [0x597A0, asm, libultra/siacs]
- [0x598C0, asm, libultra/createthread]
- [0x59A10, asm, libultra/contreaddata]
- [0x59BF0, asm, libultra/setcount]
- [0x59C00, asm, libultra/conteeplongread]
- [0x59C90, asm, libultra/virtualtophysical]
- [0x59D10, asm, libultra/setsr]
- [0x59D20, asm, libultra/writebackdcache]
- [0x59DA0, asm, libultra/initialize]
- [0x5A0F0, asm, libultra/getsr]
- [0x5A100, asm, libultra/gbpakinit]
- [0x5A330, asm, libultra/pfsgetstatus]
- [0x5A560, asm, libultra/reverb]
- [0x5B1C0, asm, libultra/perspective]
- [0x5B450, asm, libultra/sprawdma]
- [0x5B4E0, asm, libultra/sirawdma]
- [0x5B590, asm] # unknown file(s)
- [0x5B5E0, asm, libultra/viblack]
- [0x5B650, asm, libultra/sirawread]
- [0x5B6A0, asm, libultra/sptaskyield]
- [0x5B6C0, asm, libultra/lookatref]
- [0x5BB50, asm, libultra/mtxutil]
- [0x5BDC0, asm, libultra/visetmode]
- [0x5BE30, asm] # unknown file(s)
- [0x5C1E0, asm, libultra/probetlb]
- [0x5C2A0, asm] # unknown file(s)
- [0x5C420, asm, libultra/devmgr]
- [0x5C830, asm, libultra/pirawdma]
- [0x5C900, hasm, libultra/osGetCount] # RNG
- [0x5C910, asm, libultra/conteepprobe]
- [0x5C980, asm, libultra/conteepwrite]
- [0x5CD50, asm, libultra/getmemsize]
- [0x5CE70, asm, libultra/contpfs]
- [0x5D9F0, asm, libultra/seteventmesg]
- [0x5DAB0, asm, libultra/sqrtf]
- [0x5DAC0, asm, libultra/afterprenmi]
- [0x5DAE0, asm, libultra/mtxcatf]
- [0x5DCF0, asm, libultra/mtxcatl]
- [0x5DDB0, asm, libultra/random]
- [0x5DDE0, asm, libultra/xprintf]
- [0x5EAA0, asm, libultra/gbpakgetstatus]
- [0x5EC20, asm, libultra/sprintf]
- [0x5ECA0, asm, libultra/unmaptlball]
- [0x5ECF0, asm] # unknown file(s)
- [0x5EDD0, asm, libultra/heapinit]
- [0x5EE10, asm, libultra/syncprintf]
- [0x5EE50, asm, libultra/string]
- [0x5EEF0, asm, libultra/invalidcache]
- [0x5EFA0, asm, libultra/createmesgqueue]
- [0x5EFD0, asm, libultra/invalicache]
- [0x5F050, asm] # unknown file(s)
- [0x5F140, asm, libultra/sp]
- [0x5F170, asm, libultra/si]
- [0x5F1A0, asm, libultra/translate]
- [0x5F240, asm, libultra/jammesg]
- [0x5F390, asm, libultra/setthreadpri]
- [0x5F470, asm, libultra/getthreadpri]
- [0x5F490, asm, libultra/epirawread]
- [0x5F5F0, asm, libultra/viswapbuf]
- [0x5F640, asm, libultra/epirawdma]
- [0x5F820, asm, libultra/sptaskyielded]
- [0x5F8A0, asm] # unknown file(s)
- [0x5FA40, asm, libultra/bcmp]
- [0x5FB60, asm] # unknown file(s)
- [0x5FD50, asm, libultra/gettime]
- [0x5FDE0, asm, libultra/timerintr]
- [0x601E0, asm, libultra/synthesizer]
- [0x60860, asm, libultra/drvrNew]
- [0x61010, asm, libultra/mainbus]
- [0x61160, asm, libultra/auxbus]
- [0x61270, asm, libultra/env]
- [0x61EF0, asm, libultra/resample]
- [0x621F0, asm] # unknown file(s). might be load.o from AL library, but it's too different to tell.
- [0x62D40, asm, libultra/filter]
- [0x62D60, asm, libultra/save]
- [0x62E20, asm, libultra/setglobalintmask]
- [0x62E70, asm, libultra/aisetfreq]
- [0x62FC0, asm, libultra/dpctr]
- [0x63010, asm, libultra/getactivequeue]
- [0x63020, asm, libultra/normalize]
- [0x630B0, asm, libultra/setcompare]
- [0x630C0, asm, libultra/aigetstat]
- [0x630D0, asm, libultra/dpsetstat]
- [0x630E0, asm, libultra/copy]
- [0x63160, asm, libultra/bcopy]
- [0x63470, asm, libultra/resetglobalintmask]
- [0x634D0, asm, libultra/ortho]
- [0x63690, asm, libultra/interrupt]
- [0x63720, asm, libultra/vi]
- [0x63860, asm, libultra/viswapcontext]
- [0x63B60, c, os/O1/pigetcmdq]
- [0x63B90, asm]
- [0x63D00, asm]
- [0x63D50, asm, visetspecial]
- [0x63EB0, asm]
- [0x63EE0, asm, visetevent]
- [0x63F50, asm, gbpakreadid]
- [0x64110, asm]
- [0x64270, asm, pfsselectbank]
- [0x642F0, asm]
- [0x64300, asm, aigetlen]
- [0x64310, asm]
- [0x64360, asm]
- [0x643C0, asm, yieldthread]
- [0x64410, asm, contramwrite]
- [0x64660, asm, contramread]
- [0x64890, asm, crc]
- [0x64A00, hasm, os/__osGetCause]
- [0x64A10, asm, epirawwrite]
- [0x64B70, asm, settimer]
- [0x64C50, asm]
- [0x65710, asm, ldiv]
- [0x658A0, asm, xlitob]
- [0x65B40, asm, sirawwrite]
- [0x65B90, asm, spsetstat]
- [0x65BA0, asm, spgetstat]
- [0x65BC0, asm, vimgr]
- [0x65ED0, asm]
- [0x65EE0, asm]
- [0x65F10, asm]
- [0x65F70, asm, startthread]
- [0x660C0, asm, visetxscale]
- [0x661F0, asm, visetyscale]
- [0x66250, asm]
- [0x66460, asm]
- [0x66500, asm]
- [0x66510, asm, gbpakreadwrite]
- [0x666D0, asm, gbpakselectbank]
- [0x667A0, asm, aisetnextbuf]
- [0x66850, asm, ai]
- [0x66880, asm, conteepread]
- [0x66AD0, asm, vigetcurrframebuf]
- [0x66B10, asm, spsetpc]
- [0x66B50, asm]
- [0x63B90, asm, libultra/cosf]
- [0x63D00, asm, libultra/epiread]
- [0x63D50, asm, libultra/visetspecial]
- [0x63EB0, asm, libultra/settime]
- [0x63EE0, asm, libultra/visetevent]
- [0x63F50, asm, libultra/gbpakreadid]
- [0x64110, asm, libultra/cartrominit]
- [0x64270, asm, libultra/pfsselectbank]
- [0x642F0, asm, libultra/setfpccsr]
- [0x64300, asm, libultra/aigetlen]
- [0x64310, asm, libultra/epiwrite]
- [0x64360, asm, libultra/maptlbrdb]
- [0x643C0, asm, libultra/yieldthread]
- [0x64410, asm, libultra/contramwrite]
- [0x64660, asm, libultra/contramread]
- [0x64890, asm, libultra/crc]
- [0x64A00, hasm, libultra/__osGetCause]
- [0x64A10, asm, libultra/epirawwrite]
- [0x64B70, asm, libultra/settimer]
- [0x64C50, asm] # unknown file(s)
- [0x65710, asm, libultra/ldiv]
- [0x658A0, asm, libultra/xlitob]
- [0x65B40, asm, libultra/sirawwrite]
- [0x65B90, asm, libultra/spsetstat]
- [0x65BA0, asm, libultra/spgetstat]
- [0x65BC0, asm, libultra/vimgr]
- [0x65ED0, asm, libultra/vigetcurrcontext]
- [0x65EE0, asm, libultra/writebackdcacheall]
- [0x65F10, asm, libultra/heapalloc]
- [0x65F70, asm, libultra/startthread]
- [0x660C0, asm, libultra/visetxscale]
- [0x661F0, asm, libultra/visetyscale]
- [0x66250, asm, libultra/llcvt]
- [0x66460, asm, libultra/synallocfx]
- [0x66500, asm, libultra/syndelete]
- [0x66510, asm, libultra/gbpakreadwrite]
- [0x666D0, asm, libultra/gbpakselectbank]
- [0x667A0, asm, libultra/aisetnextbuf]
- [0x66850, asm, libultra/ai]
- [0x66880, asm, libultra/conteepread]
- [0x66AD0, asm, libultra/vigetcurrframebuf]
- [0x66B10, asm, libultra/spsetpc]
- [0x66B50, asm, libultra/sethwinterrupt]
#- [0x66BC0, asm]
- [0x66BC0, bin]
- [0x2000000]

View File

@ -18,7 +18,6 @@ __ll_mod = 0x80057608;
__ll_mul = 0x80057578;
__ll_rem = 0x800574E0;
__ll_rshift = 0x800576A4;
__osActiveQueue = 0x80056CBC;
__osAiDeviceBusy = 0x80065C50;
__osCheckId = 0x8005CA40;
__osCheckPackId = 0x8005C730;
@ -55,7 +54,6 @@ __osRepairPackId = 0x8005C3E0;
__osResetGlobalIntMask = 0x80062870;
__osRestoreInt = 0x80062B00;
__osRunQueue = 0x80056CB8;
__osRunningThread = 0x80056CC0;
__osRunningThread = 0x80079630;
__osSetCause = 0x800568B0;
__osSetGlobalIntMask = 0x80062220;
@ -188,4 +186,88 @@ rmonPrintf = 0x8005E22C;
sprintf = 0x8005E044;
strchr = 0x8005E2A4;
strlen = 0x8005E27C;
viMgrMain = 0x80065140;
viMgrMain = 0x80065140;
LeoReadDiskID = 0x80052B10;
leoRd_capacity = 0x80054CC0;
leoWrite = 0x80055A80;
leoSeek = 0x800566D0;
__osSetCount = 0x80058FF0;
__osSetSR = 0x80059110;
osWritebackDCache = 0x80059120;
osInitialize = 0x800591A0;
__osGetSR = 0x800594F0;
alFxPull = 0x80059960;
alFxParam = 0x80059CA0;
alFxParamHdl = 0x80059CB8;
_loadOutputBuffer = 0x80059F14;
_loadBuffer = 0x8005A134;
_saveBuffer = 0x8005A2CC;
_filterBuffer = 0x8005A460;
_doModFunc = 0x8005A510;
__osSiCreateAccessQueue = 0x80058BA0;
__osSiGetAccess = 0x80058BF0;
__osSiRelAccess = 0x80058C34;
osGetMemSize = 0x8005C150;
sqrtf = 0x8005CEB0;
guMtxXFMF = 0x8005CEE0;
guMtxCatF = 0x8005CF80;
guMtxXFML = 0x8005D0F0;
guMtxCatL = 0x8005D150;
guRandom = 0x8005D1B0;
osUnmapTLBAll = 0x8005E0A0;
alHeapInit = 0x8005E1D0;
osInvalDCache = 0x8005E2F0;
osCreateMesgQueue = 0x8005E3A0;
osInvalICache = 0x8005E3D0;
_bcmp = 0x8005EE40;
__osTimerServicesInit = 0x8005F1E0;
__osTimerInterrupt = 0x8005F26C;
__osSetTimerIntr = 0x8005F3E4;
__osInsertTimer = 0x8005F458;
_init_lpfilter = 0x8005FC60;
alFxNew = 0x8005FD00;
alEnvmixerNew = 0x8006013C;
alLoadNew = 0x800601E4;
alResampleNew = 0x8006028C;
alAuxBusNew = 0x80060318;
alMainBusNew = 0x8006036C;
alSaveNew = 0x800603C0;
alMainBusParam = 0x80060410;
alMainBusPull = 0x80060440;
alAuxBusParam = 0x80060560;
alAuxBusPull = 0x80060590;
alEnvmixerPull = 0x80060670;
alResampleParam = 0x800612F0;
alResamplePull = 0x800613DC;
alFilterNew = 0x80062140;
alSavePull = 0x80062160;
alSaveParam = 0x800621EC;
__osActiveQueue = 0x8007962C;
__osGetActiveQueue = 0x80062410;
__osSetCompare = 0x800624B0;
osAiGetStatus = 0x800624C0;
alCopy = 0x800624E0;
_bcopy = 0x80062560;
__osViInit = 0x80062B20;
__cosf = 0x80062F90;
osEPiReadIo = 0x80063100;
osSetTime = 0x800632B0;
osCartRomInit = 0x80063510;
__osSetFpcCsr = 0x800636F0;
osEPiWriteIo = 0x80063710;
osMapTLBRdb = 0x80063760;
__osViCurr = 0x8007ACF0;
__osViGetCurrentContext = 0x800652D0;
osWritebackDCacheAll = 0x800652E0;
alHeapDBAlloc = 0x80065310;
__d_to_ll = 0x80065650;
__f_to_ll = 0x8006566C;
__d_to_ull = 0x80065688;
__f_to_ull = 0x80065728;
__ll_to_d = 0x800657C4;
__ll_to_f = 0x800657DC;
__ull_to_d = 0x800657F4;
__ull_to_f = 0x80065828;
alSynAllocFX = 0x80065860;
alSynDelete = 0x80065900;
__osSetHWIntrRoutine = 0x80065F50;

View File

@ -563,7 +563,7 @@ D_800795B0 = 0x800795B0;
D_80079610 = 0x80079610;
D_80079620 = 0x80079620;
D_80079628 = 0x80079628;
D_8007962C = 0x8007962C;
__osActiveQueue = 0x8007962C;
__osRunningThread = 0x80079630;
D_80079634 = 0x80079634;
D_80079640 = 0x80079640;
@ -598,7 +598,7 @@ D_8007AB50 = 0x8007AB50;
D_8007AC4E = 0x8007AC4E;
D_8007AC50 = 0x8007AC50;
D_8007AC90 = 0x8007AC90;
D_8007ACF0 = 0x8007ACF0;
__osViCurr = 0x8007ACF0;
D_8007ACF4 = 0x8007ACF4;
D_8007AD00 = 0x8007AD00;
D_8007AD50 = 0x8007AD50;