mirror of
https://github.com/farisawan-2000/kirby64.git
synced 2024-11-23 13:20:03 +00:00
removed some lingering/moved tools from git tree
This commit is contained in:
parent
60943456c4
commit
52019b2cc7
@ -1,9 +0,0 @@
|
||||
TARGET = kirby.us
|
||||
LD_SCRIPT = $(TARGET).ld
|
||||
MIO0_DIR = bin
|
||||
TEXTURE_DIR = textures
|
||||
GEO_DIR = geo
|
||||
|
||||
|
||||
RAW_TEXTURE_FILES := $(addprefix $(BUILD_DIR)/,$(patsubst %.png,%,$(wildcard $(TEXTURES_DIR)/raw/*.png)))
|
||||
|
@ -1,24 +0,0 @@
|
||||
import sys, os,binascii, struct
|
||||
addr = sys.argv[2]
|
||||
file = open(sys.argv[1],'rb')
|
||||
|
||||
specificOvl = "_ovl3"
|
||||
|
||||
if len(sys.argv) == 4:
|
||||
specificOvl = sys.argv[3]
|
||||
|
||||
filebuf = file.read()
|
||||
print(".include \"macros.inc\"")
|
||||
print(".section .data")
|
||||
rom = 0
|
||||
while rom < len(filebuf):
|
||||
myData = filebuf[rom:rom+4]
|
||||
print("glabel D_"+ str(hex(int(addr,16)+rom))[2:].upper()+ specificOvl+
|
||||
"\n.word 0x"+str(binascii.hexlify(filebuf[rom:rom+4]))[2:-1].upper()
|
||||
)
|
||||
testFloat = str(struct.unpack('>f', myData))
|
||||
# if "nan" not in testFloat and "e" not in testFloat and testFloat != '(0.0,)':
|
||||
# print(testFloat, binascii.hexlify(myData))
|
||||
# print(".word 0x"+str(binascii.hexlify(filebuf[rom:rom+4]))[2:-1].upper())
|
||||
print()
|
||||
rom+=4
|
@ -1,10 +0,0 @@
|
||||
import glob
|
||||
|
||||
|
||||
|
||||
files = glob.glob("data/*")
|
||||
for file in files:
|
||||
with open(file, "r") as a:
|
||||
for line in a:
|
||||
if "glabel" in line:
|
||||
print(line.split("glabel")[1][1:-1])
|
@ -1,35 +0,0 @@
|
||||
import sys, os, binascii
|
||||
|
||||
def getCodeEntry(ROMStart, ROMEnd, RAMStart, RAMStart2, RAMEnd, RAMEnd2, BSSStart, BSSStart2, BSSEnd):
|
||||
return " - ["+ROMStart+", "+ROMEnd+", \"asm\", \"ovl\", "+RAMStart2+"] #"+RAMEnd
|
||||
|
||||
OVL_TABLE_START = 0x66820
|
||||
OVL_TABLE_END = 0x66AF0
|
||||
|
||||
|
||||
print("ROM Start |ROM End |.text Start |.data Start |.bss Start |.bss End")
|
||||
kirby = open(sys.argv[1], "rb")
|
||||
kirbyBuff = kirby.read()
|
||||
while (OVL_TABLE_START < OVL_TABLE_END):
|
||||
a = OVL_TABLE_START
|
||||
ROMStart = '0x'+binascii.hexlify(kirbyBuff[a:a+4]).decode("ascii")
|
||||
ROMEnd = '0x'+binascii.hexlify(kirbyBuff[a+4:a+8]).decode("ascii")
|
||||
RAMStart = '0x'+binascii.hexlify(kirbyBuff[a+8:a+12]).decode("ascii")
|
||||
RAMStart2 = '0x'+binascii.hexlify(kirbyBuff[a+12:a+16]).decode("ascii")
|
||||
RAMEnd = '0x'+binascii.hexlify(kirbyBuff[a+16:a+20]).decode("ascii")
|
||||
RAMEnd2 = '0x'+binascii.hexlify(kirbyBuff[a+16:a+20]).decode("ascii")
|
||||
DataStart = '0x'+binascii.hexlify(kirbyBuff[a+20:a+24]).decode("ascii")
|
||||
DataEnd = '0x'+binascii.hexlify(kirbyBuff[a+24:a+28]).decode("ascii")
|
||||
BSSStart = '0x'+binascii.hexlify(kirbyBuff[a+28:a+32]).decode("ascii")
|
||||
BSSStart2 = '0x'+binascii.hexlify(kirbyBuff[a+28:a+32]).decode("ascii")
|
||||
BSSEnd = '0x'+binascii.hexlify(kirbyBuff[a+32:a+36]).decode("ascii")
|
||||
|
||||
diff = int(RAMEnd, 16) - int(RAMStart, 16)
|
||||
rommers = int(ROMStart, 16)
|
||||
rommers += diff
|
||||
ROMEnd = str(hex(rommers))
|
||||
ROMEnd2 = str(hex(rommers))
|
||||
|
||||
print("{0:11} {1:10} {2:13} {3:13} {4:13} {5:13} ".format(ROMStart, ROMEnd, RAMStart, RAMEnd, BSSStart, BSSEnd))
|
||||
# print(RAMEnd, BSSStart, BSSEnd)
|
||||
OVL_TABLE_START += 36
|
@ -1,4 +0,0 @@
|
||||
# globally accessible functions and data
|
||||
# these will be accessible by C code and show up in the .map file
|
||||
|
||||
|
@ -1,45 +0,0 @@
|
||||
#ifdef UCODE_TEXT
|
||||
#define UCODE_START(name, addr) \
|
||||
name##TextStart = .;
|
||||
/*name##TextRomStart = __romPos;*/
|
||||
|
||||
#define UCODE_END(name) \
|
||||
name##TextEnd = .;
|
||||
/*_##name##TextRomEnd = __romPos + SIZEOF(.name); \
|
||||
__romPos += SIZEOF(.name);*/
|
||||
|
||||
UCODE_START(gspF3DEX2_fifo, .)
|
||||
BUILD_DIR/ucode/F3DEX2_2.04H/F3DEX2_2.04H.code.o(*);
|
||||
UCODE_END(gspF3DEX2_fifo)
|
||||
|
||||
UCODE_START(gspL3DEX2_fifo, .)
|
||||
BUILD_DIR/ucode/L3DEX2_2.04H/L3DEX2_2.04H.code.o(*);
|
||||
UCODE_END(gspL3DEX2_fifo)
|
||||
|
||||
UCODE_START(gspS2DEX2_fifo, .)
|
||||
BUILD_DIR/ucode/S2DEX2_2.04/S2DEX2_2.04.code.o(*);
|
||||
UCODE_END(gspS2DEX2_fifo)
|
||||
#endif
|
||||
|
||||
#ifdef UCODE_DATA
|
||||
#define UCODE_START(name, addr) \
|
||||
name##DataStart = .;
|
||||
/*name##DataRomStart = __romPos;*/
|
||||
|
||||
#define UCODE_END(name) \
|
||||
name##DataEnd = .;
|
||||
/*name##DataRomEnd = __romPos + SIZEOF(.name); \
|
||||
__romPos += SIZEOF(.name);*/
|
||||
|
||||
UCODE_START(gspF3DEX2_fifo, .)
|
||||
BUILD_DIR/ucode/F3DEX2_2.04H/F3DEX2_2.04H.data.o(*);
|
||||
UCODE_END(gspF3DEX2_fifo)
|
||||
|
||||
UCODE_START(gspL3DEX2_fifo, .)
|
||||
BUILD_DIR/ucode/L3DEX2_2.04H/L3DEX2_2.04H.data.o(*);
|
||||
UCODE_END(gspL3DEX2_fifo)
|
||||
|
||||
UCODE_START(gspS2DEX2_fifo, .)
|
||||
BUILD_DIR/ucode/S2DEX2_2.04/S2DEX2_2.04.data.o(*);
|
||||
UCODE_END(gspS2DEX2_fifo)
|
||||
#endif
|
98
ovl10_bss.s
98
ovl10_bss.s
@ -1,98 +0,0 @@
|
||||
.include "macros.inc"
|
||||
.section .bss
|
||||
glabel D_801F4D30_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D34_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D38_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D3C_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D40_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D44_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D48_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D4C_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D50_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D54_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D58_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D5C_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D60_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D64_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D68_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D6C_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D70_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D74_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D78_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D7C_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D80_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D84_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D88_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D8C_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D90_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D94_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D98_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4D9C_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4DA0_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4DA4_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4DA8_ovl10
|
||||
.word 0x00000000
|
||||
|
||||
glabel D_801F4DAC_ovl10
|
||||
.word 0x00000000
|
||||
|
Loading…
Reference in New Issue
Block a user