1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-29 08:16:11 +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 - name: rspbootText
segment: boot segment: boot
vram: 0x800065C0 vram: 0x800065C0
size: 0xD0 size: 0x160
- name: aspMainText - name: aspMainText
segment: code segment: code
vram: 0x800E3600 vram: 0x800E3600
size: 0xFB0 size: 0xFB0
- name: gspS2DEX2d_fifoText - name: gspF3DZEX2_NoN_PosLight_fifoText
segment: code segment: code
vram: 0x800E45B0 vram: 0x800E45B0
size: 0x1390
- name: gspS2DEX2d_fifoText
segment: code
vram: 0x800E5940
size: 0x18C0 size: 0x18C0
- name: njpgdspMainText - name: njpgdspMainText
segment: code segment: code
vram: 0x800E5E70 vram: 0x800E7200
size: 0xAF0 size: 0xAF0
- name: gSequenceFontTable - name: gSequenceFontTable
segment: code segment: code
@ -36,21 +40,17 @@ incbins:
segment: code segment: code
vram: 0x80114990 vram: 0x80114990
size: 0x2E0 size: 0x2E0
- name: gspF3DZEX2_NoN_PosLight_fifoText
segment: code
vram: 0x80114C70
size: 0x1630
- name: gspF3DZEX2_NoN_PosLight_fifoData - name: gspF3DZEX2_NoN_PosLight_fifoData
segment: code segment: code
vram: 0x801162A0 vram: 0x80114C70
size: 0x420 size: 0x420
- name: gspS2DEX2d_fifoData - name: gspS2DEX2d_fifoData
segment: code segment: code
vram: 0x801166C0 vram: 0x80115090
size: 0x390 size: 0x390
- name: njpgdspMainData - name: njpgdspMainData
segment: code segment: code
vram: 0x80116A50 vram: 0x80115420
size: 0x60 size: 0x60
variables: variables:
gMtxClear: 0x800FF3F0 gMtxClear: 0x800FF3F0

View file

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

View file

@ -13,6 +13,12 @@ glabel aspMainTextStart
.incbin "incbin/aspMainText" .incbin "incbin/aspMainText"
glabel aspMainTextEnd 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 glabel gspS2DEX2d_fifoTextStart
.incbin "incbin/gspS2DEX2d_fifoText" .incbin "incbin/gspS2DEX2d_fifoText"
glabel gspS2DEX2d_fifoTextEnd glabel gspS2DEX2d_fifoTextEnd

View file

@ -13,9 +13,15 @@
glabel D_80009410 glabel D_80009410
.word osStopThread .word osStopThread
.word __osSetHWIntrRoutine .word __osSetHWIntrRoutine
#if PLATFORM_N64
.word osEPiWriteIo
.word osEPiReadIo
#endif
.word __osSetFpcCsr .word __osSetFpcCsr
.word __osGetFpcCsr .word __osGetFpcCsr
.word __osGetHWIntrRoutine .word __osGetHWIntrRoutine
.word __osSetHWIntrRoutine .word __osSetHWIntrRoutine
.word osViGetNextFramebuffer .word osViGetNextFramebuffer
#if !PLATFORM_N64
.word bcmp .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/xlitob.o"
include "$(BUILD_DIR)/src/libultra/libc/ldiv.o" include "$(BUILD_DIR)/src/libultra/libc/ldiv.o"
include "$(BUILD_DIR)/src/libultra/libc/xldtob.o" include "$(BUILD_DIR)/src/libultra/libc/xldtob.o"
#endif
#if PLATFORM_N64
include "$(BUILD_DIR)/src/libultra/os/settimer.o"
#endif #endif
include "$(BUILD_DIR)/src/libultra/io/sirawwrite.o" include "$(BUILD_DIR)/src/libultra/io/sirawwrite.o"
include "$(BUILD_DIR)/src/libultra/io/vimgr.o" include "$(BUILD_DIR)/src/libultra/io/vimgr.o"
@ -730,8 +733,14 @@ beginseg
#if !OOT_DEBUG #if !OOT_DEBUG
include "$(BUILD_DIR)/src/libultra/io/pfsisplug.o" include "$(BUILD_DIR)/src/libultra/io/pfsisplug.o"
#endif #endif
#if !PLATFORM_N64
include "$(BUILD_DIR)/src/libultra/os/settimer.o" 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/xldtob.o"
include "$(BUILD_DIR)/src/libultra/libc/ldiv.o" include "$(BUILD_DIR)/src/libultra/libc/ldiv.o"
include "$(BUILD_DIR)/src/libultra/libc/xlitob.o" include "$(BUILD_DIR)/src/libultra/libc/xlitob.o"

View file

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

View file

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