1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-15 12:47:04 +00:00

[iQue] Set address of makerom instead of address of boot in spec (#2409)

This commit is contained in:
cadmic 2025-01-09 15:36:09 -08:00 committed by GitHub
parent f329507f97
commit 8b5813c86c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

4
spec
View file

@ -6,6 +6,9 @@
beginseg beginseg
name "makerom" name "makerom"
// We set the address of the makerom segment as 0x80000400 - 0x1000, since the ROM header and IPL3 together
// are 0x1000 bytes long and we want the entry code to end up at address 0x80000400.
address 0x7FFFF400
include "$(BUILD_DIR)/src/makerom/rom_header.o" include "$(BUILD_DIR)/src/makerom/rom_header.o"
include "$(BUILD_DIR)/src/makerom/ipl3.o" include "$(BUILD_DIR)/src/makerom/ipl3.o"
include "$(BUILD_DIR)/src/makerom/entry.o" include "$(BUILD_DIR)/src/makerom/entry.o"
@ -13,7 +16,6 @@ endseg
beginseg beginseg
name "boot" name "boot"
address 0x80000460
include "$(BUILD_DIR)/src/boot/boot_main.o" include "$(BUILD_DIR)/src/boot/boot_main.o"
include "$(BUILD_DIR)/src/boot/idle.o" include "$(BUILD_DIR)/src/boot/idle.o"
#if OOT_VERSION >= PAL_1_0 #if OOT_VERSION >= PAL_1_0

View file

@ -6,7 +6,7 @@
/* 0x00 */ ENDIAN_IDENTIFIER /* 0x00 */ ENDIAN_IDENTIFIER
/* 0x01 */ PI_DOMAIN_1_CFG(64, 18, 7, 3) /* 0x01 */ PI_DOMAIN_1_CFG(64, 18, 7, 3)
/* 0x04 */ SYSTEM_CLOCK_RATE_SETTING(0xF) /* 0x04 */ SYSTEM_CLOCK_RATE_SETTING(0xF)
/* 0x08 */ ENTRYPOINT(0x80000400) /* 0x08 */ ENTRYPOINT(entrypoint)
/* 0x0C */ OS_VERSION(2, 0, LIBULTRA_VERSION) /* 0x0C */ OS_VERSION(2, 0, LIBULTRA_VERSION)
/* 0x10 */ CHECKSUM() /* 0x10 */ CHECKSUM()