/************************************* * C02 Variable Management Routines * *************************************/ #include #include #include #include #include #include "common.h" #include "files.h" #include "asm.h" #include "parse.h" #include "label.h" #include "vars.h" /* Lookup variable name in variable table * * Sets: varidx = index into varnam array * * varcnt if not found * * Returns: TRUE if found, otherwise FALSE */ int fndvar(char *name) { DEBUG("Looking up variable '%s'\n", word); for (varidx=0; varidx 0) { DEBUG("Allocating array '%s'\n", varnam[i]); asmlin(STROP, varsiz[i]); } else { DEBUG("Allocating variable '%s'\n", varnam[i]); asmlin(BYTEOP, "0"); } } vrwrtn = TRUE; }