// // tonc_asminc.h : header file with goodies for assembly. // //! \file tonc_asminc.h //! \author J Vijn //! \date 20081019 - 20120519 // /* === NOTES === * Cleaned up the macros so that they work with comma-directives as well. * For use in assembly only! */ #ifndef TONC_ASMINC_H #define TONC_ASMINC_H #if !__ASSEMBLER__ #error This header file is for use in assembly only! #endif // /asm only // -------------------------------------------------------------------- // MACROS // -------------------------------------------------------------------- #define DEF_SIZE(_name) .size _name, .-_name //! \name Section definitions for assembly. //\{ #define CSEC_TEXT .text //!< Standard code section directive. #define CSEC_EWRAM .section .ewram , "ax", %progbits //!< EWRAM code section directive. #define CSEC_IWRAM .section .iwram, "ax", %progbits //!< IWRAM code section directive. #define DSEC_DATA .data //