1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-28 15:56:51 +00:00

Fix some boot and code data (#2155)

This commit is contained in:
cadmic 2024-09-07 05:10:52 -07:00 committed by GitHub
parent e19ec02917
commit a30f130eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 39 additions and 11 deletions

View file

@ -11,18 +11,22 @@ incbins:
- name: rspbootText
segment: boot
vram: 0x800065C0
size: 0xD0
size: 0x160
- name: aspMainText
segment: code
vram: 0x800E3600
size: 0xFB0
- name: gspS2DEX2d_fifoText
- name: gspF3DZEX2_NoN_PosLight_fifoText
segment: code
vram: 0x800E45B0
size: 0x1390
- name: gspS2DEX2d_fifoText
segment: code
vram: 0x800E5940
size: 0x18C0
- name: njpgdspMainText
segment: code
vram: 0x800E5E70
vram: 0x800E7200
size: 0xAF0
- name: gSequenceFontTable
segment: code
@ -36,21 +40,17 @@ incbins:
segment: code
vram: 0x80114990
size: 0x2E0
- name: gspF3DZEX2_NoN_PosLight_fifoText
segment: code
vram: 0x80114C70
size: 0x1630
- name: gspF3DZEX2_NoN_PosLight_fifoData
segment: code
vram: 0x801162A0
vram: 0x80114C70
size: 0x420
- name: gspS2DEX2d_fifoData
segment: code
vram: 0x801166C0
vram: 0x80115090
size: 0x390
- name: njpgdspMainData
segment: code
vram: 0x80116A50
vram: 0x80115420
size: 0x60
variables:
gMtxClear: 0x800FF3F0

View file

@ -13,9 +13,11 @@ glabel aspMainDataStart
.incbin "incbin/aspMainData"
glabel aspMainDataEnd
#if !PLATFORM_N64
glabel gspF3DZEX2_NoN_PosLight_fifoTextStart
.incbin "incbin/gspF3DZEX2_NoN_PosLight_fifoText"
glabel gspF3DZEX2_NoN_PosLight_fifoTextEnd
#endif
glabel gspF3DZEX2_NoN_PosLight_fifoDataStart
.incbin "incbin/gspF3DZEX2_NoN_PosLight_fifoData"

View file

@ -13,6 +13,12 @@ glabel aspMainTextStart
.incbin "incbin/aspMainText"
glabel aspMainTextEnd
#if PLATFORM_N64
glabel gspF3DZEX2_NoN_PosLight_fifoTextStart
.incbin "incbin/gspF3DZEX2_NoN_PosLight_fifoText"
glabel gspF3DZEX2_NoN_PosLight_fifoTextEnd
#endif
glabel gspS2DEX2d_fifoTextStart
.incbin "incbin/gspS2DEX2d_fifoText"
glabel gspS2DEX2d_fifoTextEnd

View file

@ -13,9 +13,15 @@
glabel D_80009410
.word osStopThread
.word __osSetHWIntrRoutine
#if PLATFORM_N64
.word osEPiWriteIo
.word osEPiReadIo
#endif
.word __osSetFpcCsr
.word __osGetFpcCsr
.word __osGetHWIntrRoutine
.word __osSetHWIntrRoutine
.word osViGetNextFramebuffer
#if !PLATFORM_N64
.word bcmp
#endif

11
spec
View file

@ -129,6 +129,9 @@ beginseg
include "$(BUILD_DIR)/src/libultra/libc/xlitob.o"
include "$(BUILD_DIR)/src/libultra/libc/ldiv.o"
include "$(BUILD_DIR)/src/libultra/libc/xldtob.o"
#endif
#if PLATFORM_N64
include "$(BUILD_DIR)/src/libultra/os/settimer.o"
#endif
include "$(BUILD_DIR)/src/libultra/io/sirawwrite.o"
include "$(BUILD_DIR)/src/libultra/io/vimgr.o"
@ -730,8 +733,14 @@ beginseg
#if !OOT_DEBUG
include "$(BUILD_DIR)/src/libultra/io/pfsisplug.o"
#endif
#if !PLATFORM_N64
include "$(BUILD_DIR)/src/libultra/os/settimer.o"
#if !OOT_DEBUG
#endif
#if PLATFORM_N64
include "$(BUILD_DIR)/src/libultra/libc/xlitob.o"
include "$(BUILD_DIR)/src/libultra/libc/ldiv.o"
include "$(BUILD_DIR)/src/libultra/libc/xldtob.o"
#elif !OOT_DEBUG
include "$(BUILD_DIR)/src/libultra/libc/xldtob.o"
include "$(BUILD_DIR)/src/libultra/libc/ldiv.o"
include "$(BUILD_DIR)/src/libultra/libc/xlitob.o"

View file

@ -33,8 +33,11 @@ OSMesgQueue sDmaMgrMsgQueue;
OSMesg sDmaMgrMsgBuf[32];
OSThread sDmaMgrThread;
STACK(sDmaMgrStack, 0x500);
#if OOT_DEBUG
const char* sDmaMgrCurFileName;
s32 sDmaMgrCurFileLine;
#endif
u32 gDmaMgrVerbose = 0;
size_t gDmaMgrDmaBuffSize = DMAMGR_DEFAULT_BUFSIZE;

View file

@ -20,10 +20,12 @@ char sNew[] = "new";
char sNew[] = "";
#endif
#if !PLATFORM_N64
char D_80134488[0x18] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x80, 0x00, 0x00,
0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
};
#endif
// possibly some kind of new() function
void* func_800FC800(u32 size) {