Skip to content

Commit

Permalink
Fix some boot and code data (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
cadmic authored Sep 7, 2024
1 parent e19ec02 commit a30f130
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 11 deletions.
20 changes: 10 additions & 10 deletions baseroms/ntsc-1.2/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions data/rsp.rodata.s
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions data/rsp.text.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions data/unk_80009410.data.s
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 10 additions & 1 deletion spec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/boot/z_std_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/code/code_800FC620.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a30f130

Please sign in to comment.