Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
include_asm.h File Reference

Go to the source code of this file.

Macros

#define STRINGIFY_(x)   #x
 
#define STRINGIFY(x)   STRINGIFY_(x)
 
#define INCLUDE_ASM_INTERNAL(TYPE, BASE_FOLDER, FOLDER, NAME, ARGS...)
 
#define INCLUDE_ASM(TYPE, FOLDER, NAME, ARGS...)   INCLUDE_ASM_INTERNAL(TYPE, "nonmatchings", FOLDER, NAME, ARGS)
 
#define INCLUDE_ASM_SHIFT(TYPE, FOLDER, NAME, ARGS...)   INCLUDE_ASM_INTERNAL(TYPE, "shiftable", FOLDER, NAME, ARGS)
 

Functions

 __asm__ (".include \"include/macro.inc\"\n")
 

Macro Definition Documentation

◆ STRINGIFY_

#define STRINGIFY_ ( x)    #x

Definition at line 4 of file include_asm.h.

◆ STRINGIFY

#define STRINGIFY ( x)    STRINGIFY_(x)

Definition at line 5 of file include_asm.h.

◆ INCLUDE_ASM_INTERNAL

#define INCLUDE_ASM_INTERNAL ( TYPE,
BASE_FOLDER,
FOLDER,
NAME,
ARGS... )
Value:
".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/"BASE_FOLDER"/"FOLDER"/"#NAME".s\"\n" \
"\t.set reorder\n" \
"\t.set at\n" \
"\t.end\t"#NAME \
);
__asm__(".include \"include/macro.inc\"\n")
#define STRINGIFY(x)
Definition include_asm.h:5

Definition at line 9 of file include_asm.h.

9#define INCLUDE_ASM_INTERNAL(TYPE, BASE_FOLDER, FOLDER, NAME, ARGS...) \
10 __asm__( \
11 ".section .text\n" \
12 "\t.align\t2\n" \
13 "\t.globl\t"#NAME"\n" \
14 "\t.ent\t"#NAME"\n" \
15 #NAME ":\n" \
16 "\t.include \"ver/"STRINGIFY(VERSION)"/asm/"BASE_FOLDER"/"FOLDER"/"#NAME".s\"\n" \
17 "\t.set reorder\n" \
18 "\t.set at\n" \
19 "\t.end\t"#NAME \
20 );

◆ INCLUDE_ASM

#define INCLUDE_ASM ( TYPE,
FOLDER,
NAME,
ARGS... )   INCLUDE_ASM_INTERNAL(TYPE, "nonmatchings", FOLDER, NAME, ARGS)

Definition at line 21 of file include_asm.h.

◆ INCLUDE_ASM_SHIFT

#define INCLUDE_ASM_SHIFT ( TYPE,
FOLDER,
NAME,
ARGS... )   INCLUDE_ASM_INTERNAL(TYPE, "shiftable", FOLDER, NAME, ARGS)

Definition at line 22 of file include_asm.h.

Function Documentation

◆ __asm__()

__asm__ ( ".include \"include/macro.inc\"\n" )