shithub: rgbds

Download patch

ref: bd843134623c3c415d20a130834f54966d4cf982
parent: 795542103dfbee31b3da4794ed520547a48421cc
author: bentley <[email protected]>
date: Fri Jan 15 12:18:58 EST 2010

remove GAMEBOY/PCENGINE conditionals (this is a Game Boy assembler)

--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@
 	${CC} $(cflags) -o $@ $(rgbfix_obj)
 
 .c.o:
-	${CC} $(cflags) -DGAMEBOY -c -o $@ $<
+	${CC} $(cflags) -c -o $@ $<
 
 src/asm/asmy.c: src/asm/asmy.y
 	${YACC} -d -o $@ $<
--- a/include/asm/rpn.h
+++ b/include/asm/rpn.h
@@ -77,11 +77,6 @@
 int 
 rpn_RangeCheck(struct Expression * expr, struct Expression * src, SLONG low,
     SLONG high);
-#ifdef	GAMEBOY
 void rpn_CheckHRAM(struct Expression * expr, struct Expression * src1);
-#endif
-#ifdef	PCENGINE
-void rpn_CheckZP(struct Expression * expr, struct Expression * src);
-#endif
 
 #endif
--- a/src/asm/globlex.c
+++ b/src/asm/globlex.c
@@ -317,15 +317,11 @@
 	{"endc", T_POP_ENDC},
 
 	{"bss", T_SECT_BSS},
-#if defined(GAMEBOY) || defined(PCENGINE)
 	{"vram", T_SECT_VRAM},
-#endif
 	{"code", T_SECT_CODE},
 	{"data", T_SECT_CODE},
-#ifdef GAMEBOY
 	{"home", T_SECT_HOME},
 	{"hram", T_SECT_HRAM},
-#endif
 
 	{NAME_RB, T_POP_RB},
 	{NAME_RW, T_POP_RW},
--- a/src/asm/rpn.c
+++ b/src/asm/rpn.c
@@ -188,7 +188,6 @@
 		return (expr->nVal >= low && expr->nVal <= high);
 	}
 }
-#ifdef GAMEBOY
 void 
 rpn_CheckHRAM(struct Expression * expr, struct Expression * src)
 {
@@ -195,16 +194,6 @@
 	*expr = *src;
 	pushbyte(expr, RPN_HRAM);
 }
-#endif
-
-#ifdef PCENGINE
-void 
-rpn_CheckZP(struct Expression * expr, struct Expression * src)
-{
-	*expr = *src;
-	pushbyte(expr, RPN_PCEZP);
-}
-#endif
 
 void 
 rpn_LOGNOT(struct Expression * expr, struct Expression * src)