genFunction (iCode * ic)
{
symbol *sym;
- sym_link *fetype;
+ sym_link *ftype;
int i = 0;
_G.nRegsSaved = 0;
emitcode (";", "-----------------------------------------");
emitcode ("", "%s:", sym->rname);
- fetype = getSpec (operandType (IC_LEFT (ic)));
+ ftype = operandType (IC_LEFT (ic));
/* if critical function then turn interrupts off */
- if (SPEC_CRTCL (fetype))
+ if (IFFUNC_ISCRITICAL (ftype))
emitcode ("cli", "");
- if (IS_ISR (sym->etype)) {
+ if (IFFUNC_ISISR (sym->type)) {
}
/* save the preserved registers that are used in this function */
}
}
- if (SPEC_CRTCL (sym->etype))
+ if (IFFUNC_ISCRITICAL (sym->type))
emitcode ("sti", "");
- if (IS_ISR (sym->etype)) {
+ if (IFFUNC_ISISR (sym->type)) {
emitcode ("rti", "");
}
else {
}
/* should have been converted to function call */
- assert (1);
+ assert (0);
release:
freeAsmop (left, NULL, ic, (RESULTONSTACK (ic) ? FALSE : TRUE));
genDiv (iCode * ic)
{
/* should have been converted to function call */
- assert (1);
+ assert (0);
}
/*-----------------------------------------------------------------*/
genMod (iCode * ic)
{
/* should have been converted to function call */
- assert (1);
+ assert (0);
}
if (rar[i].rtype == type)
return rar[i].type;
}
- assert (1); /* cannot happen */
+ assert (0); /* cannot happen */
return 0; /* makes the compiler happy */
}
genCmpGt (iCode * ic, iCode * ifx)
{
/* should have transformed by the parser */
- assert (1);
+ assert (0);
}
/*-----------------------------------------------------------------*/