mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
33c9dda3a5
* warnings, cleanup, 2 npc ai funcs * kmcgcc stuff * effect_75 * effect_9.c done * cleanup, work on kmc gcc * start on fx_73 * guOrtho/guOrthoF * more libultra/cleanup * more libultra * add wine for darwin * effect_73 done * UnkQuizFunc * effect func naming * name appendGfx funcs * fix fx_66 * Add KMC wrapper to Jenkinsfile * mac fixes * fix macro usage * oopz * 3 fixes * blah * KMC_ASM * config changes
32 lines
778 B
C
32 lines
778 B
C
#ifndef __INCLUDE_ASM_LIBULTRA_H__
|
|
#define __INCLUDE_ASM_LIBULTRA_H__
|
|
|
|
#define STRINGIFY_(x) #x
|
|
#define STRINGIFY(x) STRINGIFY_(x)
|
|
|
|
#if !defined(SPLAT) && !defined(__CTX__) && !defined(PERMUTER)
|
|
#ifndef INCLUDE_ASM_LIBULTRA
|
|
#define INCLUDE_ASM_LIBULTRA(FOLDER, NAME) \
|
|
__asm__( \
|
|
".section .text\n" \
|
|
"\t.align\t2\n" \
|
|
"\t.globl\t"#NAME"\n" \
|
|
"\t.ent\t"#NAME"\n" \
|
|
#NAME ":\n" \
|
|
"\t.include \"ver/"STRINGIFY(VERSION)"/asm/os/"FOLDER"/"#NAME".s\"\n" \
|
|
"\t.set reorder\n" \
|
|
"\t.set at\n" \
|
|
"\t.end\t"#NAME \
|
|
);
|
|
#endif
|
|
__asm__(".include \"include/macro.inc\"\n");
|
|
#ifdef MOVE_ADDU
|
|
__asm__(".include \"include/move_addu.inc\"\n");
|
|
#endif
|
|
#else
|
|
#define INCLUDE_ASM_LIBULTRA(FOLDER, NAME)
|
|
#endif
|
|
|
|
|
|
#endif
|