#include "acid.h"
#include "y.tab.h"
+char afmt = 'X';
static int syren;
Lsym*
if(s->name[0] == '.')
continue;
+ if(strlen(s->name) >= sizeof(buf)-6){
+ if(!quiet)
+ print("Symbol name too long: %s\n", s->name);
+ continue;
+ }
+
v = s->value;
tl = al(TLIST);
*tail = tl;
l->v->type = TINT;
l->v->ival = v;
if(l->v->comt == 0)
- l->v->fmt = 'X';
+ l->v->fmt = 'A';
/* Enter as list of { name, type, value } */
list = al(TSTRING);
list->ival = s->type;
list->next = al(TINT);
list = list->next;
- list->fmt = 'X';
+ list->fmt = l->v->fmt;
list->ival = v;
}
Reglist *r;
List **tail, *li;
+ if(mach->szaddr == 8){
+ afmt = 'Y';
+ fsize['a'] = fsize[afmt];
+ fsize['A'] = fsize[afmt];
+ }
+
l = mkvar("registers");
v = l->v;
v->set = 1;