improved ROM handling

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

View file

@ -259,6 +259,7 @@ dopseudo() {
nromwords=0;
rommask=0;
rombit=1;
for (;;) {
t=getarg(val_ptyp);
while (t!=sp_cend) {
if (t==sp_cstx && nromwords<MAXROM) {
@ -270,6 +271,14 @@ dopseudo() {
con(t);
t=getarg(any_ptyp);
}
{
int c = get8();
if (c == ps_rom) continue;
if (c != EOF) ungetc(c, emfile);
}
break;
}
if (rommask != 0) {
romcont[MAXROM]=rommask;
enterglo(labstr,romcont);