improved ROM handling

This commit is contained in:
ceriel 1987-05-18 15:50:42 +00:00
parent 66bcbd7d66
commit 45f384c870

View file

@ -259,16 +259,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;