mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
011a957985
* 25.00% * remove __naked__ and name printContext->unk_4E8 * change rodata strings to [] * actually remove * fix headers * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "eec8ac0cb8" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "eec8ac0cb8" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * progress * . * . * some stuff * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "4e012eaad6" upstream: origin: "https://github.com/ethteck/splat.git" branch: "imgflip" commit: "4e012eaad6" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * :OK: * 2 graphics funcs! * woo * more * match func_802A15A0_733670 (#276) * . * gfx_draw_frame, other fixes * macros begone! Co-authored-by: pixel-stuck <mathmcclintic@gmail.com>
33 lines
795 B
C
33 lines
795 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); \
|
|
__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/nonmatchings/"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(TYPE, FOLDER, NAME, ARGS...)
|
|
#endif
|
|
|
|
|
|
#endif
|