mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +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)
|
${CC} $(cflags) -o $@ $(rgbfix_obj)
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
${CC} $(cflags) -DGAMEBOY -c -o $@ $<
|
${CC} $(cflags) -c -o $@ $<
|
||||||
|
|
||||||
src/asm/asmy.c: src/asm/asmy.y
|
src/asm/asmy.c: src/asm/asmy.y
|
||||||
${YACC} -d -o $@ $<
|
${YACC} -d -o $@ $<
|
||||||
|
|||||||
@@ -77,11 +77,6 @@ void rpn_Reset(struct Expression * expr);
|
|||||||
int
|
int
|
||||||
rpn_RangeCheck(struct Expression * expr, struct Expression * src, SLONG low,
|
rpn_RangeCheck(struct Expression * expr, struct Expression * src, SLONG low,
|
||||||
SLONG high);
|
SLONG high);
|
||||||
#ifdef GAMEBOY
|
|
||||||
void rpn_CheckHRAM(struct Expression * expr, struct Expression * src1);
|
void rpn_CheckHRAM(struct Expression * expr, struct Expression * src1);
|
||||||
#endif
|
|
||||||
#ifdef PCENGINE
|
|
||||||
void rpn_CheckZP(struct Expression * expr, struct Expression * src);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -317,15 +317,11 @@ struct sLexInitString staticstrings[] = {
|
|||||||
{"endc", T_POP_ENDC},
|
{"endc", T_POP_ENDC},
|
||||||
|
|
||||||
{"bss", T_SECT_BSS},
|
{"bss", T_SECT_BSS},
|
||||||
#if defined(GAMEBOY) || defined(PCENGINE)
|
|
||||||
{"vram", T_SECT_VRAM},
|
{"vram", T_SECT_VRAM},
|
||||||
#endif
|
|
||||||
{"code", T_SECT_CODE},
|
{"code", T_SECT_CODE},
|
||||||
{"data", T_SECT_CODE},
|
{"data", T_SECT_CODE},
|
||||||
#ifdef GAMEBOY
|
|
||||||
{"home", T_SECT_HOME},
|
{"home", T_SECT_HOME},
|
||||||
{"hram", T_SECT_HRAM},
|
{"hram", T_SECT_HRAM},
|
||||||
#endif
|
|
||||||
|
|
||||||
{NAME_RB, T_POP_RB},
|
{NAME_RB, T_POP_RB},
|
||||||
{NAME_RW, T_POP_RW},
|
{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);
|
return (expr->nVal >= low && expr->nVal <= high);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef GAMEBOY
|
|
||||||
void
|
void
|
||||||
rpn_CheckHRAM(struct Expression * expr, struct Expression * src)
|
rpn_CheckHRAM(struct Expression * expr, struct Expression * src)
|
||||||
{
|
{
|
||||||
*expr = *src;
|
*expr = *src;
|
||||||
pushbyte(expr, RPN_HRAM);
|
pushbyte(expr, RPN_HRAM);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PCENGINE
|
|
||||||
void
|
|
||||||
rpn_CheckZP(struct Expression * expr, struct Expression * src)
|
|
||||||
{
|
|
||||||
*expr = *src;
|
|
||||||
pushbyte(expr, RPN_PCEZP);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
rpn_LOGNOT(struct Expression * expr, struct Expression * src)
|
rpn_LOGNOT(struct Expression * expr, struct Expression * src)
|
||||||
|
|||||||
Reference in New Issue
Block a user