mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-27 14:50:23 +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
|