diff --git a/include/macro.inc b/include/macro.inc index 1d894e2..231fc43 100644 --- a/include/macro.inc +++ b/include/macro.inc @@ -8,3 +8,8 @@ .global \label \label: .endm + +.macro jlabel label + .global \label + \label: +.endm diff --git a/splat.yaml b/splat.yaml index 0660831..9824d69 100644 --- a/splat.yaml +++ b/splat.yaml @@ -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