mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
8e4df57de7
* 25.00% * remove __naked__ and name printContext->unk_4E8 * change rodata strings to []
23 lines
637 B
C
23 lines
637 B
C
#ifndef __INCLUDE_ASM_H__
|
|
#define __INCLUDE_ASM_H__
|
|
|
|
#define STRINGIFY_(x) #x
|
|
#define STRINGIFY(x) STRINGIFY_(x)
|
|
|
|
#if !defined(SPLAT) && !defined(__CTX__) && !defined(PERMUTER)
|
|
#ifndef INCLUDE_ASM
|
|
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...) \
|
|
TYPE NAME(ARGS); \
|
|
TYPE __attribute__((naked)) NAME(ARGS) { __asm__( ".section .text\n.include \"ver/"STRINGIFY(VERSION)"/asm/nonmatchings/"FOLDER"/"#NAME".s\"\n.set reorder\n.set at"); }
|
|
#endif
|
|
__asm__(".include \"include/macro.inc\"\n");
|
|
#ifdef MOVE_ADDU
|
|
__asm__(".include \"include/move_addu.inc\"\n");
|
|
#endif
|
|
#else
|
|
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...)
|
|
#endif
|
|
|
|
|
|
#endif
|