//
#include "debug.h"
-#include "sect.h"
#include "amode.h"
+#include "direct.h"
#include "mark.h"
+#include "sect.h"
+#include "token.h"
+
-static int siztab[4] = {3, 5, 9, 9};
+static int siztab[4] = { 3, 5, 9, 9 };
//
switch ((int)*tp++)
{
case SYMBOL:
- printf("`%s' ", ((SYM *)*tp)->sname);
- ++tp;
+// printf("`%s' ", ((SYM *)*tp)->sname);
+ printf("`%s' ", symbolPtr[*tp]->sname);
+ tp++;
break;
case CONST:
printf("$%ux ", *tp++);
p.cp = ch->chptr;
ep = ch->chptr + ch->ch_size;
- while(p.cp < ep)
+ while (p.cp < ep)
{
attr = *p.wp++;
loc = *p.lp++;
else
{
printf("`%s' ;\n", (*p.sy)->sname);
- ++p.lp;
+ p.sy++;
}
}
printf("CONST=%ud", *tk++);
break;
case STRING: // STRING <address>
- printf("STRING='%s'", (char *)*tk++);
+// printf("STRING='%s'", (char *)*tk++);
+ printf("STRING='%s'", string[*tk++]);
break;
case SYMBOL: // SYMBOL <address>
- printf("SYMBOL='%s'", (char *)*tk++);
+// printf("SYMBOL='%s'", (char *)*tk++);
+ printf("SYMBOL='%s'", string[*tk++]);
break;
case EOL: // End of line
printf("EOL");
{
int i;
- for(i = 1; i < NSECTS; ++i)
+ for(i=1; i<NSECTS; i++)
{
if (sect[i].scattr & SUSED)
{