mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-09 12:54:40 +00:00
18 lines
262 B
C
18 lines
262 B
C
#ifndef ASM_H
|
|
#define ASM_H
|
|
|
|
#ifdef __STDC__
|
|
# define _C_LABEL(x) _ ## x
|
|
#else
|
|
# define _C_LABEL(x) _/**/x
|
|
#endif
|
|
#define _ASM_LABEL(x) x
|
|
|
|
#define _ENTRY(name) \
|
|
.text; .align 4; .globl name; name:
|
|
|
|
#define ENTRY(name) \
|
|
_ENTRY(_C_LABEL(name))
|
|
|
|
#endif
|