Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ assets/
bin/
build/
disks/
include/*.inc
include/include_asm.h
sym_export.*.txt
undefined_funcs_auto.*.txt
undefined_syms_auto.*.txt
Expand Down
1 change: 1 addition & 0 deletions config/main.us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ options:
- ".data"
- ".bss"
ld_generate_symbol_per_data_segment: true
include_asm_macro_style: maspsx_hack
sha1: a95e8b16b97071203b953bb81a33980509262f30
segments:
- [0x800, header]
Expand Down
16 changes: 1 addition & 15 deletions include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,7 @@
#define NULL 0
#endif

#ifdef USE_INCLUDE_ASM
__asm__(".include \"macro.inc\"\n");
#define INCLUDE_ASM(FOLDER, NAME) \
void __maspsx_include_asm_hack_##NAME() { \
__asm__(".text # maspsx-keep \n" \
"\t.align\t2 # maspsx-keep\n" \
"\t.set noreorder # maspsx-keep\n" \
"\t.set noat # maspsx-keep\n" \
".include \"" FOLDER "/" #NAME ".s\" # maspsx-keep\n" \
"\t.set reorder # maspsx-keep\n" \
"\t.set at # maspsx-keep\n"); \
}
#else
#define INCLUDE_ASM(FOLDER, NAME)
#endif
#include "include_asm.h"

typedef signed char s8;
typedef unsigned char u8;
Expand Down
19 changes: 0 additions & 19 deletions include/macro.inc

This file was deleted.

6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
splat64==0.34.3
spimdisasm==1.35.0
rabbitizer
splat64==0.36.3
spimdisasm==1.39.0
rabbitizer==1.14.3
colorama
watchdog
levenshtein
Expand Down
6 changes: 5 additions & 1 deletion tools/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ def filter_functions(
symbol_list: list[tuple[str, str, str]],
) -> list[tuple[str, str, str]]:
return [
symbol for symbol in symbol_list if symbol[1] == "T" and is_function(symbol[2])
symbol
for symbol in symbol_list
if symbol[1] == "T"
and is_function(symbol[2])
and not symbol[2].endswith(".NON_MATCHING")
]


Expand Down
Loading