handle ROM's better

This commit is contained in:
ceriel 1987-05-18 13:29:32 +00:00
parent cdf0fa6d6b
commit 32a436bab4

View file

@ -251,16 +251,25 @@ dopseudo() {
nromwords=0; nromwords=0;
rommask=0; rommask=0;
rombit=1; rombit=1;
t=getarg(val_ptyp); for (;;) {
while (t!=sp_cend) { t=getarg(val_ptyp);
if (t==sp_cstx && nromwords<MAXROM) { while (t!=sp_cend) {
romcont[nromwords] = (word) argval; if (t==sp_cstx && nromwords<MAXROM) {
rommask |= rombit; romcont[nromwords] = (word) argval;
rommask |= rombit;
}
nromwords++;
rombit <<= 1;
con(t);
t=getarg(any_ptyp);
} }
nromwords++; {
rombit <<= 1; int c = get8();
con(t);
t=getarg(any_ptyp); if (c == ps_rom) continue;
if (c !=EOF) ungetc(c, emfile);
}
break;
} }
if (rommask != 0) { if (rommask != 0) {
romcont[MAXROM]=rommask; romcont[MAXROM]=rommask;