mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
remove GAMEBOY/PCENGINE conditionals (this is a Game Boy assembler)
This commit is contained in:
2
Makefile
2
Makefile
@@ -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 $@ $<
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user