Change `splat.yaml` to add jlabel macro

This commit is contained in:
gijs 2024-05-23 22:12:17 +02:00
parent 2a602f70e7
commit 17bcb1984c
2 changed files with 13 additions and 0 deletions

View File

@ -8,3 +8,8 @@
.global \label
\label:
.endm
.macro jlabel label
.global \label
\label:
.endm

View File

@ -29,6 +29,14 @@ options:
# auto_all_sections: [".data", "rodata", ".bss"]
# libultra_symbols: True
# hardware_regs: True
# This tells splat/spimdisasm to use one kind of label for functions (glabel) and a different one for data and jumptable labels
# This helps you to avoid marking some data as a function or viceversa
asm_function_macro: glabel
asm_data_macro: dlabel
asm_jtbl_label_macro: jlabel
asm_emit_size_directive: True
segments:
- name: header
type: header