"add sp,8".
default ==> arg_error("C_dvf", $1).
+C_ngf
+ $1 == 4 ==> "call .ngf4".
+ $1 == 8 ==> "call .ngf8".
+ default ==> arg_error("C_ngf", $1).
+
C_fif
$1 == 4 ==> C_lor((arith)1);
"call .fif4";
EMHOME = ../../..
CEG = $(EMHOME)/lib/ceg/util
+OBJ = obj
all:
- make -f $(CEG)/make_obj
+ make -f $(CEG)/make_asobj "OBJ="$(OBJ)
install:
- make -f $(CEG)/make_obj install
+ make -f $(CEG)/make_asobj "OBJ="$(OBJ) install
cmp:
- -make -f $(CEG)/make_obj cmp
+ -make -f $(CEG)/make_asobj "OBJ="$(OBJ) cmp
pr:
@pr Makefile EM_table mach.h mach.c as_table as.h as.c
# total cleanup
clean:
- make -f $(CEG)/make_obj clean
+ make -f $(CEG)/make_asobj "OBJ="$(OBJ) clean
# only remove ce, ceg, and back directories
dclean:
- make -f $(CEG)/make_obj dclean
+ make -f $(CEG)/make_asobj "OBJ="$(OBJ) dclean
* expr(reg) -> IS_MEM
*/
{
- char *ptr, *index();
+ char *ptr, *strindex();
op->type = UNKNOWN;
if ( *last( str) == RIGHT) {
- ptr = index( str, LEFT);
+ ptr = strindex( str, LEFT);
*last( str) = '\0';
*ptr = '\0';
if ( is_reg( ptr+1, op)) {
char *str;
struct t_operand *op;
{
- char *ptr, *index(), *sprint();
+ char *ptr, *strindex(), *sprint();
static char buf[256];
- ptr = index( str, '+');
+ ptr = strindex( str, '+');
if ( ptr == 0)
op->off = "0";
}
else {
op->type = IS_LABEL;
- if ( index( str, DOLLAR) != 0)
+ if ( strindex( str, DOLLAR) != 0)
op->lab = str;
else
/* nood oplossing */