summaryrefslogtreecommitdiff
path: root/device/include/asm
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
commit268a53de823a6750d6256ee1fb1e7707b4b45740 (patch)
tree42c1799a9a82b2f7d9790ee9fe181d72a7274751 /device/include/asm
downloadsdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'device/include/asm')
-rw-r--r--device/include/asm/default/features.h37
-rw-r--r--device/include/asm/ds390/features.h74
-rw-r--r--device/include/asm/ez80_z80/features.h41
-rw-r--r--device/include/asm/gbz80/features.h40
-rw-r--r--device/include/asm/mcs51/features.h86
-rw-r--r--device/include/asm/pic14/features.h40
-rw-r--r--device/include/asm/pic16/features.h43
-rw-r--r--device/include/asm/r2k/features.h41
-rwxr-xr-xdevice/include/asm/r3ka/features.h41
-rw-r--r--device/include/asm/stm8/features.h41
-rw-r--r--device/include/asm/tlcs90/features.h41
-rw-r--r--device/include/asm/z180/features.h41
-rw-r--r--device/include/asm/z80/features.h41
13 files changed, 607 insertions, 0 deletions
diff --git a/device/include/asm/default/features.h b/device/include/asm/default/features.h
new file mode 100644
index 0000000..5d13451
--- /dev/null
+++ b/device/include/asm/default/features.h
@@ -0,0 +1,37 @@
+/*-------------------------------------------------------------------------
+ features.h - default features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDC51_ASM_FEATURES_H
+#define __SDC51_ASM_FEATURES_H 1
+
+#define _REENTRANT __reentrant
+#define _CODE __code
+#define _AUTOMEM
+#define _STATMEM
+
+#endif
diff --git a/device/include/asm/ds390/features.h b/device/include/asm/ds390/features.h
new file mode 100644
index 0000000..e38200b
--- /dev/null
+++ b/device/include/asm/ds390/features.h
@@ -0,0 +1,74 @@
+/*-------------------------------------------------------------------------
+ features.h - DS390/DS400 specific features.
+
+ Copyright (C) 2004, Maarten Brock, sourceforge.brock@dse.nl
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDC51_ASM_DS390_FEATURES_H
+#define __SDC51_ASM_DS390_FEATURES_H 1
+
+#define _REENTRANT __reentrant
+#define _CODE __code
+
+/* define _AUTOMEM to indicate the default storage class for
+ automatic variables. To be used with pointers to automatic variables.
+ Cannot be used in reentrant declared functions!
+
+ void foo(void)
+ {
+ char Ar[10];
+ char _AUTOMEM * pAr = Ar;
+ }
+*/
+#if defined(__SDCC_STACK_AUTO)
+ #if defined(__SDCC_USE_XSTACK)
+ #define _AUTOMEM __pdata
+ #elif defined(__SDCC_STACK_TENBIT)
+ #define _AUTOMEM __xdata
+ #else
+ #define _AUTOMEM __idata
+ #endif
+#elif defined(__SDCC_MODEL_SMALL)
+ #define _AUTOMEM __data
+#else
+ #define _AUTOMEM __xdata
+#endif
+
+/* define _STATMEM to indicate the default storage class for
+ global/static variables. To be used with pointers to static variables.
+
+ char Ar[10];
+ void foo(void)
+ {
+ char _STATMEM * pAr = Ar;
+ }
+*/
+#if defined(__SDCC_MODEL_SMALL)
+ #define _STATMEM __data
+#else
+ #define _STATMEM __xdata
+#endif
+
+#endif
diff --git a/device/include/asm/ez80_z80/features.h b/device/include/asm/ez80_z80/features.h
new file mode 100644
index 0000000..6588e2f
--- /dev/null
+++ b/device/include/asm/ez80_z80/features.h
@@ -0,0 +1,41 @@
+/*-------------------------------------------------------------------------
+ features.h - Z80 specific features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDCC_ASM_Z180_FEATURES_H
+#define __SDCC_ASM_Z180_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
+
diff --git a/device/include/asm/gbz80/features.h b/device/include/asm/gbz80/features.h
new file mode 100644
index 0000000..34c7acb
--- /dev/null
+++ b/device/include/asm/gbz80/features.h
@@ -0,0 +1,40 @@
+/*-------------------------------------------------------------------------
+ features.h - GBZ80 specific features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDC51_ASM_GBZ80_FEATURES_H
+#define __SDC51_ASM_GBZ80_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
diff --git a/device/include/asm/mcs51/features.h b/device/include/asm/mcs51/features.h
new file mode 100644
index 0000000..e09185c
--- /dev/null
+++ b/device/include/asm/mcs51/features.h
@@ -0,0 +1,86 @@
+/*---------------------------------------------------------------------------
+ features.h: MCS51 specific features.
+
+ Copyright (C) 2004, Maarten Brock, sourceforge.brock@dse.nl
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDC51_ASM_MCS51_FEATURES_H
+#define __SDC51_ASM_MCS51_FEATURES_H 1
+
+#define _REENTRANT __reentrant
+#define _CODE __code
+
+/* define _AUTOMEM to indicate the default storage class for
+ automatic variables. To be used with pointers to automatic variables.
+ Cannot be used in reentrant declared functions!
+
+ void foo(void)
+ {
+ char Ar[10];
+ char _AUTOMEM * pAr = Ar;
+ }
+*/
+#if defined(__SDCC_STACK_AUTO)
+ #if defined(__SDCC_USE_XSTACK)
+ #define _AUTOMEM __pdata
+ #else
+ #define _AUTOMEM __idata
+ #endif
+#elif defined(__SDCC_MODEL_SMALL)
+ #define _AUTOMEM __data
+#elif defined(__SDCC_MODEL_MEDIUM)
+ #define _AUTOMEM __pdata
+#else
+ #define _AUTOMEM __xdata
+#endif
+
+/* define _STATMEM to indicate the default storage class for
+ global/static variables. To be used with pointers to static variables.
+
+ char Ar[10];
+ void foo(void)
+ {
+ char _STATMEM * pAr = Ar;
+ }
+*/
+#if defined(__SDCC_MODEL_SMALL)
+ #define _STATMEM __data
+#elif defined(__SDCC_MODEL_MEDIUM)
+ #define _STATMEM __pdata
+#else
+ #define _STATMEM __xdata
+#endif
+
+
+/* define _RETURN for correct returning from inline asm functions
+*/
+#if defined(__SDCC_MODEL_HUGE)
+ #define _RETURN ljmp __sdcc_banked_ret
+#else
+ #define _RETURN ret
+#endif
+
+
+#endif
diff --git a/device/include/asm/pic14/features.h b/device/include/asm/pic14/features.h
new file mode 100644
index 0000000..b206c20
--- /dev/null
+++ b/device/include/asm/pic14/features.h
@@ -0,0 +1,40 @@
+/*-------------------------------------------------------------------------
+ features.h - PIC16 port features.
+
+ Copyright (C) 2004, Vangelis Rokas <vrokas AT otenet.gr>
+ Adopted for pic14 port library by Raphael Neider <rneider at web.de> (2006)
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __PIC14_ASM_FEATURES_H
+#define __PIC14_ASM_FEATURES_H 1
+
+#define _REENTRANT
+
+#define _CODE __code
+#define _DATA __data
+#define _AUTOMEM
+#define _STATMEM
+
+#endif /* __PIC14_ASM_FEATURES_H */
diff --git a/device/include/asm/pic16/features.h b/device/include/asm/pic16/features.h
new file mode 100644
index 0000000..11c6534
--- /dev/null
+++ b/device/include/asm/pic16/features.h
@@ -0,0 +1,43 @@
+/*-------------------------------------------------------------------------
+ features.h - PIC16 port features.
+
+ Copyright (C) 2004, Vangelis Rokas <vrokas AT otenet.gr>
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __PIC16_ASM_FEATURES_H
+#define __PIC16_ASM_FEATURES_H 1
+
+#define _REENTRANT
+
+#define _IL_REENTRANT
+#define _FS_REENTRANT
+#define _MATH_REENTRANT
+
+#define _CODE __code
+#define _DATA __data
+#define _AUTOMEM
+#define _STATMEM
+
+#endif /* __PIC16_ASM_FEATURES_H */
diff --git a/device/include/asm/r2k/features.h b/device/include/asm/r2k/features.h
new file mode 100644
index 0000000..bd6013b
--- /dev/null
+++ b/device/include/asm/r2k/features.h
@@ -0,0 +1,41 @@
+/*-------------------------------------------------------------------------
+ features.h - Z80 specific features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDCC_ASM_R2K_FEATURES_H
+#define __SDCC_ASM_R2K_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
+
diff --git a/device/include/asm/r3ka/features.h b/device/include/asm/r3ka/features.h
new file mode 100755
index 0000000..e68bc8d
--- /dev/null
+++ b/device/include/asm/r3ka/features.h
@@ -0,0 +1,41 @@
+/*-------------------------------------------------------------------------
+ features.h - Rabbit 3000A specific features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDCC_ASM_R3KA_FEATURES_H
+#define __SDCC_ASM_R3KA_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
+
diff --git a/device/include/asm/stm8/features.h b/device/include/asm/stm8/features.h
new file mode 100644
index 0000000..7aed5a9
--- /dev/null
+++ b/device/include/asm/stm8/features.h
@@ -0,0 +1,41 @@
+/*-------------------------------------------------------------------------
+ features.h - STM8 specific features.
+
+ Copyright (C) 2001, Michael Hope, 2013, Philipp Klaus Krause
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDCC_ASM_STM8_FEATURES_H
+#define __SDCC_ASM_STM8_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
+
diff --git a/device/include/asm/tlcs90/features.h b/device/include/asm/tlcs90/features.h
new file mode 100644
index 0000000..a551ae1
--- /dev/null
+++ b/device/include/asm/tlcs90/features.h
@@ -0,0 +1,41 @@
+/*-------------------------------------------------------------------------
+ features.h - Z80 specific features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDCC_ASM_TLCS90_FEATURES_H
+#define __SDCC_ASM_TLCS90_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
+
diff --git a/device/include/asm/z180/features.h b/device/include/asm/z180/features.h
new file mode 100644
index 0000000..6588e2f
--- /dev/null
+++ b/device/include/asm/z180/features.h
@@ -0,0 +1,41 @@
+/*-------------------------------------------------------------------------
+ features.h - Z80 specific features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDCC_ASM_Z180_FEATURES_H
+#define __SDCC_ASM_Z180_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
+
diff --git a/device/include/asm/z80/features.h b/device/include/asm/z80/features.h
new file mode 100644
index 0000000..f1f58e9
--- /dev/null
+++ b/device/include/asm/z80/features.h
@@ -0,0 +1,41 @@
+/*-------------------------------------------------------------------------
+ features.h - Z80 specific features.
+
+ Copyright (C) 2001, Michael Hope
+
+ This library is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library; see the file COPYING. If not, write to the
+ Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ As a special exception, if you link this library with other files,
+ some of which are compiled with SDCC, to produce an executable,
+ this library does not by itself cause the resulting executable to
+ be covered by the GNU General Public License. This exception does
+ not however invalidate any other reasons why the executable file
+ might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
+
+#ifndef __SDCC_ASM_Z80_FEATURES_H
+#define __SDCC_ASM_Z80_FEATURES_H 1
+
+#define _REENTRANT
+#define _CODE
+#define _AUTOMEM
+#define _STATMEM
+
+#define _SDCC_MANGLES_SUPPORT_FUNS 1
+#define _SDCC_Z80_STYLE_LIB_OPT 1
+
+#endif
+