adapted to use new em_code module, and a minor fix

This commit is contained in:
ceriel
1988-01-14 10:52:36 +00:00
parent 9564f8fd98
commit 7304b54af9
3 changed files with 22 additions and 10 deletions

View File

@@ -15,6 +15,9 @@ static char rcsid1[] = "$Header$";
char *filename; /* Name of input file */
int errors; /* Number of errors */
extern arith C_bsssize, C_holsize;
extern int C_bssinit, C_holinit;
main(argc,argv)
char **argv;
{
@@ -37,7 +40,7 @@ main(argc,argv)
}
else if (!O_open( (char *) 0)) fatal("O_open failed");
O_magic();
EM_mkcalls(p);
C_out(p);
for(;;) {
EM_getinstr(p=GETNXTPATT());
@@ -66,14 +69,23 @@ main(argc,argv)
case ps_pro:
case ps_end:
break;
case ps_hol:
C_holsize = EM_holsize;
C_holinit = EM_holinit;
C_out(p);
OO_nxtpatt--;
continue;
case ps_bss:
C_bsssize = EM_bsssize;
C_bssinit = EM_bssinit;
default:
EM_mkcalls(p);
C_out(p);
OO_nxtpatt--;
continue;
}
break;
default:
EM_mkcalls(p);
C_out(p);
OO_nxtpatt--;
continue;
case EM_EOF: