[Simh] Crowther's Adventure game
Lars Brinkhoff
lars at nocrew.org
Fri Feb 2 14:59:24 EST 2018
> I see that the data file from which the strings are read do prefix all
> strings with a space character. So it looks like the intent is that
> FORMAT(20A5) should do the right thing. Maybe the root cause is in
> the code reading the data file.
For example the data file contains lines like this:
42 YOU ARE IN A MAZE OF TWISTY LITTLE PASSAGES, ALL ALIKE.
Right after the number is a TAB character, and then there's a space
character, and then the text. "42\t YOU..."
1004 READ(1,1005)JKIND,(LLINE(I,J),J=3,22)
1005 FORMAT(1G,20A5)
1G should read a number. I'm guessing the TAB is a separator here? In
that case, 20A5 ought to read the text including the first space
character.
More information about the Simh
mailing list