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

This commit is contained in:
bentley
2010-01-15 17:18:58 -07:00
parent 795542103d
commit bd84313462
4 changed files with 1 additions and 21 deletions

View File

@@ -62,7 +62,7 @@ rgbfix: $(rgbfix_obj)
${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 $@ $<

View File

@@ -77,11 +77,6 @@ void rpn_Reset(struct Expression * expr);
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

View File

@@ -317,15 +317,11 @@ struct sLexInitString staticstrings[] = {
{"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},

View File

@@ -188,23 +188,12 @@ rpn_RangeCheck(struct Expression * expr, struct Expression * src, SLONG low,
return (expr->nVal >= low && expr->nVal <= high);
}
}
#ifdef GAMEBOY
void
rpn_CheckHRAM(struct Expression * expr, struct Expression * src)
{
*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)