git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4562 4a8a32a2...
authorMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 7 Jan 2007 17:10:12 +0000 (17:10 +0000)
committerMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 7 Jan 2007 17:10:12 +0000 (17:10 +0000)
src/port.h

index 93e03b4141bdcfe952ee780549e8a06a593eb88d..d3e9a86dccd73845d52dbc2d2c00c05935779d2b 100644 (file)
 */
 #define TARGET_IS_MCS51 (port->id==TARGET_ID_MCS51)
 #define TARGET_IS_GBZ80 (port->id==TARGET_ID_GBZ80)
-#define TARGET_IS_Z80 (port->id==TARGET_ID_Z80)
-#define TARGET_IS_AVR (port->id==TARGET_ID_AVR)
+#define TARGET_IS_Z80   (port->id==TARGET_ID_Z80)
+#define TARGET_Z80_LIKE ((port->id==TARGET_ID_Z80) || (port->id==TARGET_ID_GBZ80))
+#define TARGET_IS_AVR   (port->id==TARGET_ID_AVR)
 #define TARGET_IS_DS390 (port->id==TARGET_ID_DS390)
 #define TARGET_IS_DS400 (port->id==TARGET_ID_DS400)
 #define TARGET_IS_PIC   (port->id==TARGET_ID_PIC)
 #define TARGET_IS_PIC16 (port->id==TARGET_ID_PIC16)
-#define TARGET_IS_XA51 (port->id==TARGET_ID_XA51)
-#define TARGET_IS_HC08 (port->id==TARGET_ID_HC08)
+#define TARGET_IS_XA51  (port->id==TARGET_ID_XA51)
+#define TARGET_IS_HC08  (port->id==TARGET_ID_HC08)
 
 #define MAX_BUILTIN_ARGS        16
 /* definition of builtin functions */