This commit is contained in:
ceriel 1987-01-16 13:59:02 +00:00
parent 0b941ef495
commit e4a90bc417

View file

@ -68,12 +68,12 @@ i_regsave() {
f_regsave(){ f_regsave(){
register i; register i;
register int c = '[';
fprintf(codefile, "enter ["); fprintf(codefile, "enter ");
if (n_regvars>=1){ for (i=0; i<n_regvars; i++) {
fprintf(codefile,"%s",regadm[0].ra_str); fprintf(codefile,"%c%s", c, regadm[i].ra_str);
for (i=1; i<n_regvars; i++) c = ',';
fprintf(codefile,",%s",regadm[0].ra_str);
} }
fprintf(codefile, "], %d\n", lbytes); fprintf(codefile, "], %d\n", lbytes);
for (i=0;i<n_regvars;i++) for (i=0;i<n_regvars;i++)
@ -92,12 +92,12 @@ regsave(regstr,off,size) char *regstr; long off; {
regreturn() { regreturn() {
register int i; register int i;
register int c = '[';
fprintf(codefile, "exit ["); fprintf(codefile, "exit ");
if (n_regvars>=1){ for (i=1; i<n_regvars; i++) {
fprintf(codefile,"%s",regadm[0].ra_str); fprintf(codefile,"%c%s", c, regadm[i].ra_str);
for (i=1; i<n_regvars; i++) c = ',';
fprintf(codefile,",%s",regadm[0].ra_str);
} }
fprintf(codefile, "]\n"); fprintf(codefile, "]\n");
} }