*** patchlvl.h.orig	Fri Oct  9 16:15:46 1987
--- patchlvl.h	Tue Dec  1 09:29:16 1987
***************
*** 1 ****
! #define PATCHLEVEL 2
--- 1 ----
! #define PATCHLEVEL 3
*** vocab.h.orig	Mon Feb  2 08:52:50 1987
--- vocab.h	Tue Dec  1 09:29:33 1987
***************
*** 11,17 ****
  &		VVOC3(136),
  &		VVOC4(116),VVOC5(134),VVOC6(117),VVOC7(89),VVOCND
  	INTEGER OVOC(1050)
! 	COMMON /OBJVOC/ OVOC1(159),OVOC2(144),OVOC3(150),OVOC4(128),
  &		OVOC5(111),OVOC6(104),OVOC6A(97),OVOC7(127),OVOCND
  C
  	EQUIVALENCE (VVOC(1),VVOC1(1))
--- 11,17 ----
  &		VVOC3(136),
  &		VVOC4(116),VVOC5(134),VVOC6(117),VVOC7(89),VVOCND
  	INTEGER OVOC(1050)
! 	COMMON /OBJVOC/ OVOC1(160),OVOC2(144),OVOC3(150),OVOC4(128),
  &		OVOC5(111),OVOC6(104),OVOC6A(97),OVOC7(127),OVOCND
  C
  	EQUIVALENCE (VVOC(1),VVOC1(1))
*** Makefile.bsd.orig	Fri Oct  9 16:46:56 1987
--- Makefile.bsd	Tue Dec  1 09:27:03 1987
***************
*** 25,31 ****
  #FOPTS = -q -Nn650 -DSYSV # -Ddebug
  # f77 compiler flags for pdp (64K split I/D)
  #FOPTS = -q -I2 -L1 -i -DPDP # -Nn650 -Ddebug
! FFLAGS = -O $(FOPTS)
  
  # flags for the loader
  LDFLAGS = # -s -g -v
--- 25,32 ----
  #FOPTS = -q -Nn650 -DSYSV # -Ddebug
  # f77 compiler flags for pdp (64K split I/D)
  #FOPTS = -q -I2 -L1 -i -DPDP # -Nn650 -Ddebug
! # use -DNOCC if system does not react on carriage control (e.g. Unix)
! FFLAGS = -O -DNOCC $(FOPTS)
  
  # flags for the loader
  LDFLAGS = # -s -g -v
*** Makefile.sun.orig	Fri Oct  9 16:47:02 1987
--- Makefile.sun	Tue Dec  1 09:27:05 1987
***************
*** 25,31 ****
  #FOPTS = -q -Nn650 -DSYSV # -Ddebug
  # f77 compiler flags for pdp (64K split I/D)
  #FOPTS = -q -I2 -L1 -i -DPDP # -Nn650 -Ddebug
! FFLAGS = -O $(FOPTS)
  
  # flags for the loader
  LDFLAGS = # -s -g -v
--- 25,32 ----
  #FOPTS = -q -Nn650 -DSYSV # -Ddebug
  # f77 compiler flags for pdp (64K split I/D)
  #FOPTS = -q -I2 -L1 -i -DPDP # -Nn650 -Ddebug
! # use -DNOCC if system does not react on carriage control (e.g. Unix)
! FFLAGS = -O -DNOCC $(FOPTS)
  
  # flags for the loader
  LDFLAGS = # -s -g -v
*** Makefile.sysv.orig	Fri Oct  9 16:55:53 1987
--- Makefile.sysv	Tue Dec  1 12:14:13 1987
***************
*** 17,31 ****
  # define SYSV if running System V or V7
  # define SYSV *and* XELOS if running the XELOS OS
  CFLAGS = -O -DSYSV # -DXELOS -g -i
! CPPFLAGS = -P
  #
  # f77 compiler flags for BSD Vax (and other similar machines)
  #FOPTS = -q # -g -Ddebug
  # use -Nn650 for System V to increase default symbol table size
! # also, define SYSV and no -g flag (causes runtime errors)
! FOPTS = -q -Nn650 -DSYSV # -Ddebug
  # f77 compiler flags for pdp (64K split I/D)
! #FOPTS = -q -I2 -L1 -i -DPDP # -Nn650 -Ddebug
  FFLAGS = -O $(FOPTS)
  
  # flags for the loader
--- 17,32 ----
  # define SYSV if running System V or V7
  # define SYSV *and* XELOS if running the XELOS OS
  CFLAGS = -O -DSYSV # -DXELOS -g -i
! # use -DNOCC if system does not react on carriage control (e.g. Unix)
! CPPFLAGS = -P -DNOCC -DSYSV # -DXELOS -Ddebug
  #
  # f77 compiler flags for BSD Vax (and other similar machines)
  #FOPTS = -q # -g -Ddebug
  # use -Nn650 for System V to increase default symbol table size
! # also, no -g flag (causes runtime errors)
! FOPTS = -q -Nn650
  # f77 compiler flags for pdp (64K split I/D)
! #FOPTS = -q -I2 -L1 -i -DPDP # -Ddebug
  FFLAGS = -O $(FOPTS)
  
  # flags for the loader
*** lex.c.orig	Mon Nov 23 13:34:14 1981
--- lex.c	Wed Oct 21 13:58:10 1987
***************
*** 39,45 ****
  		else if ((j >= 'A') && (j <= 'Z'))
  			j -= '@';
  		else if (((j >= '1') && (j <= '9')) || (j == '-'))
! 			j -= 0x0c;	/* formfeed */
  		else {
  			if (*vbflag)
  				rspeak_(&num601);
--- 39,45 ----
  		else if ((j >= 'A') && (j <= 'Z'))
  			j -= '@';
  		else if (((j >= '1') && (j <= '9')) || (j == '-'))
! 			j -= 0x12;
  		else {
  			if (*vbflag)
  				rspeak_(&num601);
*** actors.F.orig	Mon Feb  9 11:51:02 1987
--- actors.F	Tue Dec  1 09:27:18 1987
***************
*** 149,155 ****
--- 149,159 ----
  C
  #ifdef debug
  	IF(DFLAG) PRINT 10
+ #ifdef NOCC
+ 10	FORMAT('THIEFD-- IN TREASURE ROOM')
+ #else NOCC
  10	FORMAT(' THIEFD-- IN TREASURE ROOM')
+ #endif
  #endif debug
  	IF(RHERE.EQ.0) GO TO 1050
  C						!VISIBLE?
***************
*** 169,175 ****
--- 173,183 ----
  	IF(and(RFLAG(THFPOS),RLIGHT).NE.0) GO TO 1400
  #ifdef debug
  	IF(DFLAG) PRINT 20
+ #ifdef NOCC
+ 20	FORMAT('THIEFD-- IN ADV ROOM')
+ #else NOCC
  20	FORMAT(' THIEFD-- IN ADV ROOM')
+ #endif NOCC
  #endif debug
  	IF(THFFLG) GO TO 1300
  C						!THIEF ANNOUNCED?
***************
*** 231,237 ****
--- 239,249 ----
  	RHERE=0
  #ifdef debug
  	IF(DFLAG) PRINT 30,THFPOS
+ #ifdef NOCC
+ 30	FORMAT('THIEFD-- IN ROOM ',I4)
+ #else NOCC
  30	FORMAT(' THIEFD-- IN ROOM ',I4)
+ #endif NOCC
  #endif debug
  	IF(QSTILL(THFPOS))
  &		CALL NEWSTA(STILL,0,0,THIEF,0)
*** demons.F.orig	Fri Oct  9 15:42:21 1987
--- demons.F	Tue Dec  1 09:27:25 1987
***************
*** 181,188 ****
  	BLOW=RMISS
  C						!ASSUME NO RESULT.
  #ifdef debug
! 	IF(DEBUG) PRINT 10,H,V,RMK,HFLG,OUT
  10	FORMAT(' BLOW 10-- ',3I7,L7,I7)
  #endif debug
  	IF(.NOT.HFLG) GO TO 1000
  C						!HERO STRIKING BLOW?
--- 181,192 ----
  	BLOW=RMISS
  C						!ASSUME NO RESULT.
  #ifdef debug
! 	IF(DFLAG) PRINT 10,H,V,RMK,HFLG,OUT
! #ifdef NOCC
! 10	FORMAT('BLOW 10-- ',3I7,L7,I7)
! #else NOCC
  10	FORMAT(' BLOW 10-- ',3I7,L7,I7)
+ #endif NOCC
  #endif debug
  	IF(.NOT.HFLG) GO TO 1000
  C						!HERO STRIKING BLOW?
***************
*** 250,257 ****
  C
  2000	CONTINUE
  #ifdef debug
! 	IF(DEBUG) PRINT 2050,ATT,OA,DEF,OD,DWEAP
  2050	FORMAT(' BLOW 2050-- ',5I7)
  #endif debug
  	IF(DEF.GT.0) GO TO 2100
  C						!DEF ALIVE?
--- 254,265 ----
  C
  2000	CONTINUE
  #ifdef debug
! 	IF(DFLAG) PRINT 2050,ATT,OA,DEF,OD,DWEAP
! #ifdef NOCC
! 2050	FORMAT('BLOW 2050-- ',5I7)
! #else NOCC
  2050	FORMAT(' BLOW 2050-- ',5I7)
+ #endif NOCC
  #endif debug
  	IF(DEF.GT.0) GO TO 2100
  C						!DEF ALIVE?
***************
*** 299,306 ****
  	J=DV
  	IF(.NOT.HFLG .AND.(DWEAP.NE.0)) J=ODESC2(DWEAP)
  #ifdef debug
! 	IF(DEBUG) PRINT 2650,RES,MI,I,J,MBASE
  2650	FORMAT(' BLOW 2650-- ',5I7)
  #endif debug
  	CALL RSPSUB(I,J)
  C						!PRESENT RESULT.
--- 307,318 ----
  	J=DV
  	IF(.NOT.HFLG .AND.(DWEAP.NE.0)) J=ODESC2(DWEAP)
  #ifdef debug
! 	IF(DFLAG) PRINT 2650,RES,MI,I,J,MBASE
! #ifdef NOCC
! 2650	FORMAT('BLOW 2650-- ',5I7)
! #else NOCC
  2650	FORMAT(' BLOW 2650-- ',5I7)
+ #endif NOCC
  #endif debug
  	CALL RSPSUB(I,J)
  C						!PRESENT RESULT.
*** dgame.F.orig	Tue Dec  1 10:29:46 1987
--- dgame.F	Tue Dec  1 10:42:07 1987
***************
*** 115,124 ****
  C						!VALID EXIT?
  C
  #ifdef PDP
! 1400	call outstr(INLINE, INLNT)
  #else
  1400	WRITE(OUTCH,1410) (INBUF(J),J=1,INLNT)
  1410	FORMAT(1X,78A1)
  #endif PDP
  	TELFLG=.TRUE.
  C						!INDICATE OUTPUT.
--- 115,128 ----
  C						!VALID EXIT?
  C
  #ifdef PDP
! 1400	call outstr(INBUF, INLNT)
  #else
  1400	WRITE(OUTCH,1410) (INBUF(J),J=1,INLNT)
+ #ifdef NOCC
+ 1410	FORMAT(78A1)
+ #else NOCC
  1410	FORMAT(1X,78A1)
+ #endif NOCC
  #endif PDP
  	TELFLG=.TRUE.
  C						!INDICATE OUTPUT.
*** dinit.F.orig	Tue Dec  1 10:30:42 1987
--- dinit.F	Tue Dec  1 10:42:07 1987
***************
*** 63,68 ****
--- 63,80 ----
  	IF(PROTCT(X)) GO TO 10000
  C						!PROTECTION VIOLATION?
  	PRINT 10100
+ #ifdef NOCC
+ 10100	FORMAT('There appears before you a threatening figure clad '
+ &	'all over'/'in heavy black armor.  His legs seem like the '
+ &	'massive trunk'/'of the oak tree.  His broad shoulders and '
+ &	'helmeted head loom'/'high over your own puny frame, and '
+ &	'you realize that his powerful'/'arms could easily crush the '
+ &	'very life from your body.  There'/'hangs from his belt a '
+ &	'veritable arsenal of deadly weapons:'/'sword, mace, ball '
+ &	'and chain, dagger, lance, and trident.'/'He speaks with a '
+ &	'commanding voice:'//20X,'"You shall not pass."'//'As '
+ &	'he grabs you by the neck all grows dim about you.')
+ #else NOCC
  10100	FORMAT(' There appears before you a threatening figure clad '
  &	'all over'/' in heavy black armor.  His legs seem like the '
  &	'massive trunk'/' of the oak tree.  His broad shoulders and '
***************
*** 73,78 ****
--- 85,91 ----
  &	'and chain, dagger, lance, and trident.'/' He speaks with a '
  &	'commanding voice:'//20X,'"You shall not pass."'//' As '
  &	'he grabs you by the neck all grows dim about you.')
+ #endif NOCC
  	CALL EXIT
  #endif PDP
  C
***************
*** 184,191 ****
  	call aryrd(220,OREAD)
  C
  	call intrd(R2LNT)
! 	call aryrd(20,O2)
! 	call aryrd(20,R2)
  C
  	call intrd(CLNT)
  	call aryrd(25,CTICK)
--- 197,204 ----
  	call aryrd(220,OREAD)
  C
  	call intrd(R2LNT)
! 	call aryrd(20,OROOM2)
! 	call aryrd(20,RROOM2)
  C
  	call intrd(CLNT)
  	call aryrd(25,CTICK)
***************
*** 455,461 ****
--- 468,478 ----
  
  #ifdef debug
  	PRINT 150
+ #ifdef NOCC
+ 150	FORMAT('RESTORING FROM "dindx.dat"')
+ #else NOCC
  150	FORMAT(' RESTORING FROM "dindx.dat"')
+ #endif NOCC
  #endif debug
  	READ(1,130) MXSCOR,STRBIT,EGMXSC
  	READ(1,130) RLNT,RDESC2,RDESC1,REXIT,RACTIO,RVAL,RFLAG
***************
*** 499,504 ****
--- 516,531 ----
  #ifdef debug
  	PRINT 1050,RLNT,RMAX,XLNT,XMAX,OLNT,OMAX,MLNT,MMAX,
  &	  VLNT,VMAX,ALNT,AMAX,CLNT,CMAX,R2LNT,R2MAX
+ #ifdef NOCC
+ 1050	FORMAT('USED:'/I5,' OF',I5,' ROOMS'/
+ &	  I5,' OF',I5,' EXITS'/
+ &	  I5,' OF',I5,' OBJECTS'/
+ &	  I5,' OF',I5,' MESSAGES'/
+ &	  I5,' OF',I5,' VILLAINS'/
+ &	  I5,' OF',I5,' ADVENTURERS'/
+ &	  I5,' OF',I5,' CLOCK EVENTS'/
+ &	  I5,' OF',I5,' ROOM2 SLOTS')
+ #else NOCC
  1050	FORMAT(' USED:'/1X,I5,' OF',I5,' ROOMS'/
  &	  1X,I5,' OF',I5,' EXITS'/
  &	  1X,I5,' OF',I5,' OBJECTS'/
***************
*** 507,516 ****
--- 534,550 ----
  &	  1X,I5,' OF',I5,' ADVENTURERS'/
  &	  1X,I5,' OF',I5,' CLOCK EVENTS'/
  &	  1X,I5,' OF',I5,' ROOM2 SLOTS')
+ #endif NOCC
  	PRINT 1150,MXSCOR,EGMXSC,RECNO,RDESC2,MBASE,STRBIT
+ #ifdef NOCC
+ 1150	FORMAT('MAX SCORE=',I5/'EG SCORE=',I5/
+ &	  'MAX RECNO=',I5/'RDESC2 BASE=',I5/
+ &	  'MELEE START=',I5/'STAR MASK=',I7)
+ #else NOCC
  1150	FORMAT(' MAX SCORE=',I5/' EG SCORE=',I5/
  &	  ' MAX RECNO=',I5/' RDESC2 BASE=',I5/
  &	  ' MELEE START=',I5/' STAR MASK=',I7)
+ #endif NOCC
  	PAUSE 1
  #endif debug
  C
***************
*** 528,533 ****
--- 562,581 ----
  1950	PRINT 960
  	PRINT 980
  	RETURN
+ #ifdef NOCC
+ 910	FORMAT('I can''t open ',INDXFILE,'.')
+ 920	FORMAT('"dindx.dat" is version ',I1,'.',I1,A1,'.'/
+ &		'I require version ',I1,'.',I1,A1,'.')
+ 960	FORMAT('I can''t open ',TEXTFILE,'.')
+ 980	FORMAT('Suddenly a sinister, wraithlike figure appears before '
+ &	'you,'/'seeming to float in the air.  In a low, sorrowful voice'
+ &	' he says,'/'"Alas, the very nature of the world has changed, '
+ &	'and the dungeon'/'cannot be found.  All must now pass away."'
+ &	'  Raising his oaken staff'/'in farewell, he fades into the '
+ &	'spreading darkness.  In his place'/'appears a tastefully '
+ &	'lettered sign reading:'//23X,'INITIALIZATION FAILURE'//
+ &	'The darkness becomes all encompassing, and your vision fails.')
+ #else NOCC
  910	FORMAT(' I can''t open ',INDXFILE,'.')
  920	FORMAT(' "dindx.dat" is version ',I1,'.',I1,A1,'.'/
  &		' I require version ',I1,'.',I1,A1,'.')
***************
*** 540,545 ****
--- 588,594 ----
  &	'spreading darkness.  In his place'/' appears a tastefully '
  &	'lettered sign reading:'//23X,'INITIALIZATION FAILURE'//
  &	' The darkness becomes all encompassing, and your vision fails.')
+ #endif NOCC
  C
  	END
  C PROTCT-- CHECK FOR USER VIOLATION
*** dmain.F.orig	Thu Sep 17 14:46:53 1987
--- dmain.F	Tue Dec  1 10:50:01 1987
***************
*** 45,51 ****
  C
  C DATA STATEMENTS FOR CONSTANT ARRAYS
  C
! 	DATA VMAJ/2/,VMIN/6/,VEDIT/'B'/
  C
  	DATA SDIR/o'40000'/,SIND/o'20000'/,SSTD/o'10000'/,
  &		SFLIP/o'4000'/,SDRIV/o'2000'/,SVMASK/o'777'/
--- 45,51 ----
  C
  C DATA STATEMENTS FOR CONSTANT ARRAYS
  C
! 	DATA VMAJ/2/,VMIN/6/,VEDIT/'C'/
  C
  	DATA SDIR/o'40000'/,SIND/o'20000'/,SSTD/o'10000'/,
  &		SFLIP/o'4000'/,SDRIV/o'2000'/,SVMASK/o'777'/
*** dso2.F.orig	Fri Feb  6 10:50:13 1987
--- dso2.F	Tue Dec  1 10:15:32 1987
***************
*** 93,102 ****
--- 93,109 ----
  #ifdef PDP
  	call pscore(AS,MXSCOR,MOVES)
  #else
+ #ifdef NOCC
+  	IF(FLG.AND.MOVES.NE.1) WRITE(OUTCH,100) AS,MXSCOR,MOVES
+  	IF(FLG.AND.MOVES.EQ.1) WRITE(OUTCH,120) AS,MXSCOR,MOVES
+  	IF(.NOT.FLG.AND.MOVES.NE.1) WRITE(OUTCH,110) AS,MXSCOR,MOVES
+  	IF(.NOT.FLG.AND.MOVES.EQ.1) WRITE(OUTCH,130) AS,MXSCOR,MOVES
+ #else NOCC
   	IF(FLG) WRITE(OUTCH,100)
   	IF(.NOT.FLG) WRITE(OUTCH,110)
   	IF(MOVES.NE.1) WRITE(OUTCH,120) AS,MXSCOR,MOVES
   	IF(MOVES.EQ.1) WRITE(OUTCH,130) AS,MXSCOR,MOVES
+ #endif NOCC
  #endif PDP
  C
  	DO 10 I=1,10
***************
*** 109,117 ****
--- 116,129 ----
  60	continue
  	call pscore(EGSCOR,EGMXSC,MOVES)
  #else
+ #ifdef NOCC
+ 60	IF(FLG) WRITE(OUTCH,140) EGSCOR,EGMXSC,MOVES
+  	IF(.NOT.FLG) WRITE(OUTCH,150) EGSCOR,EGMXSC,MOVES
+ #else NOCC
  60	IF(FLG) WRITE(OUTCH,140)
   	IF(.NOT.FLG) WRITE(OUTCH,150)
   	WRITE(OUTCH,120) EGSCOR,EGMXSC,MOVES
+ #endif NOCC
  #endif PDP
  	DO 70 I=1,5
  	  IF((EGSCOR*20/EGMXSC).GE.ERANK(I)) GO TO 80
***************
*** 120,125 ****
--- 132,151 ----
  	RETURN
  
  #ifndef PDP
+ #ifdef NOCC
+ 100	FORMAT('Your score would be',I4,' [total of',I4,' points], in',
+ &		I5,' moves.')
+ 110	FORMAT('Your score is',I4,' [total of',I4,' points], in',
+ &		I5,' moves.')
+ 120	FORMAT('Your score would be',I4,' [total of',I4,' points], in',
+ &		I5,' move.')
+ 130	FORMAT('Your score is',I4,' [total of',I4,' points], in',
+ &		I5,' move.')
+ 140	FORMAT('Your score in the endgame would be',I4,' [total of',
+ &		I4,' points], in',I5,' moves.')
+ 150	FORMAT('Your score in the endgame is',I4,' [total of',
+ &		I4,' points], in',I5,' moves.')
+ #else NOCC
  100	FORMAT(' Your score would be',$)
  110	FORMAT(' Your score is',$)
  120	FORMAT('+',I4,' [total of',I4,' points], in',I5,' moves.')
***************
*** 126,131 ****
--- 152,158 ----
  130	FORMAT('+',I4,' [total of',I4,' points], in',I5,' move.')
  140	FORMAT(' Your score in the endgame would be',$)
  150	FORMAT(' Your score in the endgame is',$)
+ #endif NOCC
  #endif PDP
  C
  	END
*** dsub.F.orig	Tue Dec  1 10:39:06 1987
--- dsub.F	Tue Dec  1 12:02:48 1987
***************
*** 96,102 ****
--- 96,106 ----
  500	CONTINUE
  C
  600	WRITE(OUTCH,650) (B1(J:J),J=1,I)
+ #ifdef NOCC
+ 650	FORMAT(74A1)
+ #else NOCC
  650	FORMAT(1X,74A1)
+ #endif NOCC
  	X=X+1
  C						!ON TO NEXT RECORD.
  	READ(UNIT=DBCH,REC=X) NEWREC,B1
***************
*** 208,214 ****
--- 212,222 ----
  	IF(DBGFLG.NE.0) RETURN
  	CALL EXIT
  C
+ #ifdef NOCC
+ 100	FORMAT('PROGRAM ERROR ',I2,', PARAMETER=',I6)
+ #else NOCC
  100	FORMAT(' PROGRAM ERROR ',I2,', PARAMETER=',I6)
+ #endif NOCC
  	END
  #endif PDP
  C NEWSTA-- SET NEW STATUS FOR OBJECT
***************
*** 438,444 ****
  C DECLARATIONS
  C
  	IMPLICIT INTEGER (A-Z)
! 	LOGICAL PROB,LIT,RAPPLI
  #include "parser.h"
  #include "gamestate.h"
  #include "screen.h"
--- 446,453 ----
  C DECLARATIONS
  C
  	IMPLICIT INTEGER (A-Z)
! 	LOGICAL LIT,RAPPLI
! C	LOGICAL PROB
  #include "parser.h"
  #include "gamestate.h"
  #include "screen.h"
***************
*** 482,488 ****
  C						!ASSUME SHORT DESC.
  	IF((FULL.EQ.0)
  &		.AND.(SUPERF.OR.(((and(RFLAG(HERE),RSEEN)).NE.0)
! &		        .AND.(BRIEFF.OR.PROB(80,80)))))       GO TO 400
  	I=RDESC1(HERE)
  C						!USE LONG.
  	IF((I.NE.0).OR.(RA.EQ.0)) GO TO 400
--- 491,504 ----
  C						!ASSUME SHORT DESC.
  	IF((FULL.EQ.0)
  &		.AND.(SUPERF.OR.(((and(RFLAG(HERE),RSEEN)).NE.0)
! C
! C  The next line means that when you request VERBOSE mode, you
! C  only get long room descriptions 20% of the time. I don't either
! C  like or understand this, so the mod. ensures VERBOSE works
! C  all the time.			jmh@ukc.ac.uk 22/10/87
! C
! C&		        .AND.(BRIEFF.OR.PROB(80,80)))))       GO TO 400
! &		        .AND.BRIEFF)))       GO TO 400
  	I=RDESC1(HERE)
  C						!USE LONG.
  	IF((I.NE.0).OR.(RA.EQ.0)) GO TO 400
*** gdt.F.orig	Thu Sep 17 13:43:17 1987
--- gdt.F	Tue Dec  1 09:28:39 1987
***************
*** 75,81 ****
--- 75,85 ----
  	RETURN
  C						!BOOT HIM OFF
  C
+ #ifdef NOCC
+ 100	FORMAT('You are not an authorized user.')
+ #else NOCC
  100	FORMAT(' You are not an authorized user.')
+ #endif NOCC
  c GDT, PAGE 2A
  C
  C HERE TO GET NEXT COMMAND
***************
*** 97,110 ****
--- 101,128 ----
  C						!NO, LOSE.
  	GO TO 2000
  C
+ #ifdef NOCC
+ 200	FORMAT('GDT>',$)
+ #else NOCC
  200	FORMAT(' GDT>',$)
+ #endif NOCC
  210	FORMAT(A2)
+ #ifdef NOCC
+ 220	FORMAT('?')
+ #else NOCC
  220	FORMAT(' ?')
+ #endif NOCC
  230	FORMAT(2I6)
  240	FORMAT(I6)
+ #ifdef NOCC
+ 225	FORMAT('Limits:   ',$)
+ 235	FORMAT('Entry:    ',$)
+ 245	FORMAT('Idx,Ary:  ',$)
+ #else NOCC
  225	FORMAT(' Limits:   ',$)
  235	FORMAT(' Entry:    ',$)
  245	FORMAT(' Idx,Ary:  ',$)
+ #endif NOCC
  c
  2300	GO TO (2400,2500,2600,2700),ARGTYP(I)+1
  C						!BRANCH ON ARG TYPE.
***************
*** 144,151 ****
--- 162,174 ----
  10100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 300	FORMAT('RM#  DESC1  EXITS ACTION  VALUE  FLAGS')
+ 310	FORMAT(I3,4(1X,I6),1X,I6)
+ #else NOCC
  300	FORMAT(' RM#  DESC1  EXITS ACTION  VALUE  FLAGS')
  310	FORMAT(1X,I3,4(1X,I6),1X,I6)
+ #endif NOCC
  C
  C DO-- DISPLAY OBJECTS
  C
***************
*** 158,166 ****
--- 181,195 ----
  11100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 320	FORMAT('OB# DESC1 DESC2 DESCO ACT FLAGS1 FLAGS2 FVL TVL
+ &	  SIZE CAPAC ROOM ADV CON  READ')
+ 330	FORMAT(I3,3I6,I4,2I7,2I4,2I6,1X,3I4,I6)
+ #else NOCC
  320	FORMAT(' OB# DESC1 DESC2 DESCO ACT FLAGS1 FLAGS2 FVL TVL
  &	  SIZE CAPAC ROOM ADV CON  READ')
  330	FORMAT(1X,I3,3I6,I4,2I7,2I4,2I6,1X,3I4,I6)
+ #endif NOCC
  C
  C DA-- DISPLAY ADVENTURERS
  C
***************
*** 172,179 ****
--- 201,213 ----
  12100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 340	FORMAT('AD#   ROOM  SCORE  VEHIC OBJECT ACTION  STREN  FLAGS')
+ 350	FORMAT(I3,6(1X,I6),1X,I6)
+ #else NOCC
  340	FORMAT(' AD#   ROOM  SCORE  VEHIC OBJECT ACTION  STREN  FLAGS')
  350	FORMAT(1X,I3,6(1X,I6),1X,I6)
+ #endif NOCC
  C
  C DC-- DISPLAY CLOCK EVENTS
  C
***************
*** 185,192 ****
--- 219,231 ----
  13100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 360	FORMAT('CL#   TICK ACTION  FLAG')
+ 370	FORMAT(I3,1X,I6,1X,I6,5X,L1)
+ #else NOCC
  360	FORMAT(' CL#   TICK ACTION  FLAG')
  370	FORMAT(1X,I3,1X,I6,1X,I6,5X,L1)
+ #endif NOCC
  C
  C DX-- DISPLAY EXITS
  C
***************
*** 202,209 ****
--- 241,253 ----
  14100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 380	FORMAT('  RANGE   CONTENTS')
+ 390	FORMAT(I3,'-',I3,3X,10I7)
+ #else NOCC
  380	FORMAT('   RANGE   CONTENTS')
  390	FORMAT(1X,I3,'-',I3,3X,10I7)
+ #endif NOCC
  C
  C DH-- DISPLAY HACKS
  C
***************
*** 210,217 ****
--- 254,266 ----
  15000	WRITE(OUTCH,400) THFPOS,THFFLG,THFACT,SWDACT,SWDSTA
  	GO TO 2000
  C
+ #ifdef NOCC
+ 400	FORMAT('THFPOS=',I6,', THFFLG=',L2,',THFACT=',L2/
+ &	' SWDACT=',L2,', SWDSTA=',I2)
+ #else NOCC
  400	FORMAT(' THFPOS=',I6,', THFFLG=',L2,',THFACT=',L2/
  &	' SWDACT=',L2,', SWDSTA=',I2)
+ #endif NOCC
  C
  C DL-- DISPLAY LENGTHS
  C
***************
*** 219,227 ****
--- 268,282 ----
  &		MBASE,STRBIT
  	GO TO 2000
  C
+ #ifdef NOCC
+ 410	FORMAT('R=',I6,', X=',I6,', O=',I6,', C=',I6/
+ &	'V=',I6,', A=',I6,', M=',I6,', R2=',I5/
+ &	'MBASE=',I6,', STRBIT=',I6)
+ #else NOCC
  410	FORMAT(' R=',I6,', X=',I6,', O=',I6,', C=',I6/
  &	' V=',I6,', A=',I6,', M=',I6,', R2=',I5/
  &	' MBASE=',I6,', STRBIT=',I6)
+ #endif NOCC
  C
  C DV-- DISPLAY VILLAINS
  C
***************
*** 234,241 ****
--- 289,301 ----
  17100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 420	FORMAT('VL# OBJECT   PROB   OPPS   BEST  MELEE')
+ 430	FORMAT(I3,5(1X,I6))
+ #else NOCC
  420	FORMAT(' VL# OBJECT   PROB   OPPS   BEST  MELEE')
  430	FORMAT(1X,I3,5(1X,I6))
+ #endif NOCC
  C
  C DF-- DISPLAY FLAGS
  C
***************
*** 246,252 ****
--- 306,316 ----
  18100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 440	FORMAT('Flag #',I2,' = ',L1)
+ #else NOCC
  440	FORMAT(' Flag #',I2,' = ',L1)
+ #endif NOCC
  C
  C DS-- DISPLAY STATE
  C
***************
*** 257,266 ****
--- 321,337 ----
  	WRITE(OUTCH,475) FROMDR,SCOLRM,SCOLAC
  	GO TO 2000
  C
+ #ifdef NOCC
+ 450	FORMAT('Parse vector=',3(1X,I6),1X,L6,1X,I6)
+ 460	FORMAT('Play vector= ',2(1X,I6),1X,L6)
+ 470	FORMAT('State vector=',9(1X,I6)/14X,2(1X,I6))
+ 475	FORMAT('Scol vector= ',1X,I6,2(1X,I6))
+ #else NOCC
  450	FORMAT(' Parse vector=',3(1X,I6),1X,L6,1X,I6)
  460	FORMAT(' Play vector= ',2(1X,I6),1X,L6)
  470	FORMAT(' State vector=',9(1X,I6)/14X,2(1X,I6))
  475	FORMAT(' Scol vector= ',1X,I6,2(1X,I6))
+ #endif NOCC
  C GDT, PAGE 4
  C
  C AF-- ALTER FLAGS
***************
*** 272,278 ****
--- 343,353 ----
  	READ(INPCH,490) FLAGS(J)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 480	FORMAT('Old=',L2,6X,'New= ',$)
+ #else NOCC
  480	FORMAT(' Old=',L2,6X,'New= ',$)
+ #endif NOCC
  490	FORMAT(L1)
  C
  C 21000-- HELP
***************
*** 280,285 ****
--- 355,378 ----
  21000	WRITE(OUTCH,900)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 900	FORMAT('Valid commands are:'/'AA- Alter ADVS'/
+ &	'AC- Alter CEVENT'/'AF- Alter FINDEX'/'AH- Alter HERE'/
+ &	'AN- Alter switches'/'AO- Alter OBJCTS'/'AR- Alter ROOMS'/
+ &	'AV- Alter VILLS'/'AX- Alter EXITS'/
+ &	'AZ- Alter PUZZLE'/'DA- Display ADVS'/
+ &	'DC- Display CEVENT'/'DF- Display FINDEX'/'DH- Display HACKS'/
+ &	'DL- Display lengths'/'DM- Display RTEXT'/
+ &	'DN- Display switches'/
+ &	'DO- Display OBJCTS'/'DP- Display parser'/
+ &	'DR- Display ROOMS'/'DS- Display state'/'DT- Display text'/
+ &	'DV- Display VILLS'/'DX- Display EXITS'/'DZ- Display PUZZLE'/
+ &	'D2- Display ROOM2'/'EX- Exit'/'HE- Type this message'/
+ &	'NC- No cyclops'/'ND- No deaths'/'NR- No robber'/
+ &	'NT- No troll'/'PD- Program detail'/
+ &	'RC- Restore cyclops'/'RD- Restore deaths'/
+ &	'RR- Restore robber'/'RT- Restore troll'/'TK- Take.')
+ #else NOCC
  900	FORMAT(' Valid commands are:'/' AA- Alter ADVS'/
  &	' AC- Alter CEVENT'/' AF- Alter FINDEX'/' AH- Alter HERE'/
  &	' AN- Alter switches'/' AO- Alter OBJCTS'/' AR- Alter ROOMS'/
***************
*** 296,301 ****
--- 389,395 ----
  &	' NT- No troll'/' PD- Program detail'/
  &	' RC- Restore cyclops'/' RD- Restore deaths'/
  &	' RR- Restore robber'/' RT- Restore troll'/' TK- Take.')
+ #endif NOCC
  C
  C NR-- NO ROBBER
  C
***************
*** 307,313 ****
--- 401,411 ----
  	WRITE(OUTCH,500)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 500	FORMAT('No robber.')
+ #else NOCC
  500	FORMAT(' No robber.')
+ #endif NOCC
  C
  C NT-- NO TROLL
  C
***************
*** 316,322 ****
--- 414,424 ----
  	WRITE(OUTCH,510)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 510	FORMAT('No troll.')
+ #else NOCC
  510	FORMAT(' No troll.')
+ #endif NOCC
  C
  C NC-- NO CYCLOPS
  C
***************
*** 325,331 ****
--- 427,437 ----
  	WRITE(OUTCH,520)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 520	FORMAT('No cyclops.')
+ #else NOCC
  520	FORMAT(' No cyclops.')
+ #endif NOCC
  C
  C ND-- IMMORTALITY MODE
  C
***************
*** 333,339 ****
--- 439,449 ----
  	WRITE(OUTCH,530)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 530	FORMAT('No deaths.')
+ #else NOCC
  530	FORMAT(' No deaths.')
+ #endif NOCC
  C
  C RR-- RESTORE ROBBER
  C
***************
*** 341,347 ****
--- 451,461 ----
  	WRITE(OUTCH,540)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 540	FORMAT('Restored robber.')
+ #else NOCC
  540	FORMAT(' Restored robber.')
+ #endif NOCC
  C
  C RT-- RESTORE TROLL
  C
***************
*** 350,356 ****
--- 464,474 ----
  	WRITE(OUTCH,550)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 550	FORMAT('Restored troll.')
+ #else NOCC
  550	FORMAT(' Restored troll.')
+ #endif NOCC
  C
  C RC-- RESTORE CYCLOPS
  C
***************
*** 360,366 ****
--- 478,488 ----
  	WRITE(OUTCH,560)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 560	FORMAT('Restored cyclops.')
+ #else NOCC
  560	FORMAT(' Restored cyclops.')
+ #endif NOCC
  C
  C RD-- MORTAL MODE
  C
***************
*** 368,374 ****
--- 490,500 ----
  	WRITE(OUTCH,570)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 570	FORMAT('Restored deaths.')
+ #else NOCC
  570	FORMAT(' Restored deaths.')
+ #endif NOCC
  C GDT, PAGE 5
  C
  C TK-- TAKE
***************
*** 381,387 ****
--- 507,517 ----
  C						!TELL.
  	GO TO 2000
  C
+ #ifdef NOCC
+ 580	FORMAT('Taken.')
+ #else NOCC
  580	FORMAT(' Taken.')
+ #endif NOCC
  C
  C EX-- GOODBYE
  C
***************
*** 397,403 ****
--- 527,537 ----
  	READ(INPCH,600) EQR(J,K)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 590	FORMAT('Old= ',I6,6X,'New= ',$)
+ #else NOCC
  590	FORMAT(' Old= ',I6,6X,'New= ',$)
+ #endif NOCC
  600	FORMAT(I6)
  C
  C AO-- ALTER OBJECT ENTRY
***************
*** 439,445 ****
--- 573,583 ----
  	READ(INPCH,620) TRAVEL(J)
  	GO TO 2000
  C
+ #ifdef NOCC
+ 610	FORMAT('Old= ',I6,6X,'New= ',$)
+ #else NOCC
  610	FORMAT(' Old= ',I6,6X,'New= ',$)
+ #endif NOCC
  620	FORMAT(I6)
  C
  C AV-- ALTER VILLAINS
***************
*** 458,464 ****
--- 596,606 ----
  38100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 630	FORMAT('#',I2,'   Room=',I6,'   Obj=',I6)
+ #else NOCC
  630	FORMAT(' #',I2,'   Room=',I6,'   Obj=',I6)
+ #endif NOCC
  C
  C DN-- DISPLAY SWITCHES
  C
***************
*** 469,475 ****
--- 611,621 ----
  39100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 640	FORMAT('Switch #',I2,' = ',I6)
+ #else NOCC
  640	FORMAT(' Switch #',I2,' = ',I6)
+ #endif NOCC
  C
  C AN-- ALTER SWITCHES
  C
***************
*** 490,496 ****
--- 636,646 ----
  41100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 650	FORMAT(I3,'-',I3,3X,10(1X,I6))
+ #else NOCC
  650	FORMAT(1X,I3,'-',I3,3X,10(1X,I6))
+ #endif NOCC
  C
  C DT-- DISPLAY TEXT
  C
***************
*** 509,516 ****
--- 659,671 ----
  44000	WRITE(OUTCH,660) ORP,LASTIT,PVEC,SYN
  	GO TO 2000
  C
+ #ifdef NOCC
+ 660	FORMAT('ORPHS= ',I7,I7,4I7/
+ &	'PV=    ',I7,4I7/'SYN=   ',6I7/15X,5I7)
+ #else NOCC
  660	FORMAT(' ORPHS= ',I7,I7,4I7/
  &	' PV=    ',I7,4I7/' SYN=   ',6I7/15X,5I7)
+ #endif NOCC
  C
  C PD--	PROGRAM DETAIL DEBUG
  C
***************
*** 527,533 ****
--- 682,692 ----
  46100	CONTINUE
  	GO TO 2000
  C
+ #ifdef NOCC
+ 670	FORMAT(1X,8I3)
+ #else NOCC
  670	FORMAT(2X,8I3)
+ #endif NOCC
  C
  C AZ--	ALTER PUZZLE ROOM
  C
*** np.F.orig	Tue Dec  1 10:35:19 1987
--- np.F	Tue Dec  1 09:28:46 1987
***************
*** 18,32 ****
  #ifdef PDP
  5	if (WHO .eq. 1) call prompt
  C	read a line of input
! 90	call rdlin(BUFFER,LENGTH,WHO)
  #else
  5	GO TO (90,10),WHO+1
  C						!SEE WHO TO PROMPT FOR.
  10	WRITE(OUTCH,50)
  C						!PROMPT FOR GAME.
  50	FORMAT(' >',$)
  
! 90	READ(INPCH,100) BUFFER
  100	FORMAT(78A1)
  
  	DO 200 LENGTH=78,1,-1
--- 18,36 ----
  #ifdef PDP
  5	if (WHO .eq. 1) call prompt
  C	read a line of input
! 90	call rdlin(BUFFER,LENGTH)
  #else
  5	GO TO (90,10),WHO+1
  C						!SEE WHO TO PROMPT FOR.
  10	WRITE(OUTCH,50)
  C						!PROMPT FOR GAME.
+ #ifdef NOCC
+ 50	FORMAT('>',$)
+ #else NOCC
  50	FORMAT(' >',$)
+ #endif NOCC
  
! 90	READ(INPCH,100, END=210) BUFFER
  100	FORMAT(78A1)
  
  	DO 200 LENGTH=78,1,-1
***************
*** 33,38 ****
--- 37,44 ----
  	  IF(BUFFER(LENGTH).NE.' ') GO TO 250
  200	CONTINUE
  	GO TO 5
+ C						!END OF FILE
+ 210	STOP
  C						!TRY AGAIN.
  
  C
***************
*** 109,115 ****
--- 115,125 ----
  #ifdef debug
  	if(dflag) write(0,*) "parse good"
  	IF(DFLAG) PRINT 10,PARSE,PRSA,PRSO,PRSI
+ #ifdef NOCC
+ 10	FORMAT('PARSE RESULTS- ',L7,3I7)
+ #else NOCC
  10	FORMAT(' PARSE RESULTS- ',L7,3I7)
+ #endif NOCC
  #endif
  	RETURN
  C
***************
*** 215,221 ****
--- 225,235 ----
  	LEX=.TRUE.
  #ifdef debug
  	IF(DFLAG) PRINT 10,CP,OP,PRSCON,(OUTBUF(I),I=1,OP+1)
+ #ifdef NOCC
+ 10	FORMAT('LEX RESULTS- ',3I7/1X,10O7)
+ #else NOCC
  10	FORMAT(' LEX RESULTS- ',3I7/1X,10O7)
+ #endif NOCC
  #endif debug
  	RETURN
  C
***************
*** 224,230 ****
--- 238,248 ----
  4000	J1=ichar(J)-ichar(DLIMIT(I+2))
  #ifdef debug
  	IF(DFLAG) PRINT 20,J,J1,CP
+ #ifdef NOCC
+ 20	FORMAT('LEX- CHAR= ',3I7)
+ #else NOCC
  20	FORMAT(' LEX- CHAR= ',3I7)
+ #endif NOCC
  #endif debug
  	IF(CP.GE.6) GO TO 200
  C						!IGNORE IF TOO MANY CHAR.
*** np1.F.orig	Fri Sep 25 16:58:35 1987
--- np1.F	Tue Dec  1 09:29:04 1987
***************
*** 287,293 ****
  C
  C	DATA VVOC1A/3RCHO,2RMP,3RLOS,1RE,3RBAR,1RF,1,45,
  C&	 3RDUN,3RGEO,1,46,3RFRO,3RBOZ,1,47,3RFOO,0,3RBLE,3RTCH,
! C&	 3RBAR,0,1,48,3RREP,3RENT,1,49,3RHOU,1RS,3RSCH,3REDU,1,50,
  C&	 3RWIN,0,1,51,3RYEL,1RL,3RSCR,3REAM,3RSHO,2RUT,1,52,
  C&	 3RHOP,0,3RSKI,1RP,1,53,3RFUC,1RK,3RSHI,1RT,3RDAM,1RN,
  C&	 3RCUR,2RSE,1,54,3RZOR,1RK,1,55,3RGRA,3RNIT,1,"50070,
--- 287,293 ----
  C
  C	DATA VVOC1A/3RCHO,2RMP,3RLOS,1RE,3RBAR,1RF,1,45,
  C&	 3RDUN,3RGEO,1,46,3RFRO,3RBOZ,1,47,3RFOO,0,3RBLE,3RTCH,
! C&	 3RBAR,0,1,48,3RREP,3RENT,1,49,3RHOU,2RRS,3RSCH,3REDU,1,50,
  C&	 3RWIN,0,1,51,3RYEL,1RL,3RSCR,3REAM,3RSHO,2RUT,1,52,
  C&	 3RHOP,0,3RSKI,1RP,1,53,3RFUC,1RK,3RSHI,1RT,3RDAM,1RN,
  C&	 3RCUR,2RSE,1,54,3RZOR,1RK,1,55,3RGRA,3RNIT,1,"50070,
***************
*** 574,580 ****
  C&	 3RCLO,2RVE,2,3RFOO,1RD,3,3RSAN,3RDWI,3,3RLUN,2RCH,3,
  C&	 3RDIN,3RNER,3,
  C&	 3RGUN,1RK,4,55,3RPIE,2RCE,4,143,186,3RSLA,1RG,4,3RCOA,1RL,5,
! C&	 3RPIL,1RE,5,38,78,87,88,122,3RHEA,1RP,5,
  C&	 3RFIG,3RURI,6,
  C&	 3RMAC,3RHIN,7,3RPDP,2R10,7,3RPDP,2R11,7,3RDRY,2RER,7,
  C&	 3RLID,0,7,3RDIA,3RMON,8,3RCAS,1RE,9,123,3RBOT,3RTLE,10,121,
--- 574,580 ----
  C&	 3RCLO,2RVE,2,3RFOO,1RD,3,3RSAN,3RDWI,3,3RLUN,2RCH,3,
  C&	 3RDIN,3RNER,3,
  C&	 3RGUN,1RK,4,55,3RPIE,2RCE,4,143,186,3RSLA,1RG,4,3RCOA,1RL,5,
! C&	 3RPIL,1RE,5,18,38,78,87,88,122,3RHEA,1RP,5,
  C&	 3RFIG,3RURI,6,
  C&	 3RMAC,3RHIN,7,3RPDP,2R10,7,3RPDP,2R11,7,3RDRY,2RER,7,
  C&	 3RLID,0,7,3RDIA,3RMON,8,3RCAS,1RE,9,123,3RBOT,3RTLE,10,121,
***************
*** 592,598 ****
  &	 5295,35400,2,10215,6400,3,30454,7329,3,20054,5120,3,
  &	 6774,22618,3,
  &	 12054,17600,4,55,25965,5000,4,143,186,30881,11200,4,5401,19200,5,
! &	 25972,8000,5,38,78,87,88,122,13001,25600,5,
  &	 9967,34329,6,
  &	 20843,13174,7,25776,50800,7,25776,50840,7,7145,8720,7,
  &	 19564,0,7,6761,21414,8,4859,8000,9,123,3820,32485,10,121,
--- 592,598 ----
  &	 5295,35400,2,10215,6400,3,30454,7329,3,20054,5120,3,
  &	 6774,22618,3,
  &	 12054,17600,4,55,25965,5000,4,143,186,30881,11200,4,5401,19200,5,
! &	 25972,8000,5,18,38,78,87,88,122,13001,25600,5,
  &	 9967,34329,6,
  &	 20843,13174,7,25776,50800,7,25776,50840,7,7145,8720,7,
  &	 19564,0,7,6761,21414,8,4859,8000,9,123,3820,32485,10,121,
***************
*** 945,951 ****
--- 945,955 ----
  C						!IDENTIFY OBJECT.
  #ifdef debug
  	  IF(DFLAG) PRINT 60,J,OBJ
+ #ifdef NOCC
+ 60	  FORMAT('SPARSE- OBJ AT ',I6,'  OBJ= ',I6)
+ #else NOCC
  60	  FORMAT(' SPARSE- OBJ AT ',I6,'  OBJ= ',I6)
+ #endif NOCC
  #endif
  	  IF(OBJ.LE.0) GO TO 6000
  C						!IF LE, COULDNT.
***************
*** 980,986 ****
--- 984,994 ----
  	SPARSE=1
  #ifdef debug
  	IF(DFLAG) PRINT 10,J
+ #ifdef NOCC
+ 10	FORMAT('SPARSE- DIR AT ',I6)
+ #else NOCC
  10	FORMAT(' SPARSE- DIR AT ',I6)
+ #endif NOCC
  #endif debug
  	RETURN
  C
***************
*** 990,996 ****
--- 998,1008 ----
  	OACT=0
  #ifdef debug
  	IF(DFLAG) PRINT 20,J
+ #ifdef NOCC
+ 20	FORMAT('SPARSE- ACT AT ',I6)
+ #else NOCC
  20	FORMAT(' SPARSE- ACT AT ',I6)
+ #endif NOCC
  	if(dflag) write(0,*) "count=",vvoc(j+2)," vnr=",vvoc(j+3)
  #endif
  	GO TO 1000
***************
*** 1002,1008 ****
--- 1014,1024 ----
  	ADJ=0
  #ifdef debug
  	IF(DFLAG) PRINT 30,J
+ #ifdef NOCC
+ 30	FORMAT('SPARSE- PREP AT ',I6)
+ #else NOCC
  30	FORMAT(' SPARSE- PREP AT ',I6)
+ #endif NOCC
  #endif debug
  	GO TO 1000
  C
***************
*** 1015,1021 ****
--- 1031,1041 ----
  	J=(and(ONAME,OFLAG))
  #ifdef debug
  	IF(DFLAG) PRINT 40,ADJ,J
+ #ifdef NOCC
+ 40	FORMAT('SPARSE- ADJ AT ',I6,' ORPHAN= ',I6)
+ #else NOCC
  40	FORMAT(' SPARSE- ADJ AT ',I6,' ORPHAN= ',I6)
+ #endif NOCC
  #endif debug
  	IF((J.NE.0).AND.(I.GE.LLNT)) GO TO 600
  	GO TO 1000
***************
*** 1080,1086 ****
--- 1100,1110 ----
  C						!WIN.
  #ifdef debug
  	IF(DFLAG) PRINT 70,ACT,O1,O2,P1,P2
+ #ifdef NOCC
+ 70	FORMAT('SPARSE RESULTS- ',5I7)
+ #else NOCC
  70	FORMAT(' SPARSE RESULTS- ',5I7)
+ #endif NOCC
  	if(dflag) write(0,*) "sparse=",sparse
  #endif
  	RETURN
*** np2.F.orig	Mon Feb  9 11:48:26 1987
--- np2.F	Tue Dec  1 09:29:08 1987
***************
*** 38,44 ****
--- 38,48 ----
  C						!SEARCH ROOM.
  #ifdef debug
  	IF(DFLAG) PRINT 10,OBJ
+ #ifdef NOCC
+ 10	FORMAT('SCHLST- ROOM SCH ',I6)
+ #else NOCC
  10	FORMAT(' SCHLST- ROOM SCH ',I6)
+ #endif NOCC
  #endif debug
  	IF(OBJ) 1000,200,100
  C						!TEST RESULT.
***************
*** 55,61 ****
--- 59,69 ----
  C						!SEARCH VEHICLE.
  #ifdef debug
  	IF(DFLAG) PRINT 20,NOBJ
+ #ifdef NOCC
+ 20	FORMAT('SCHLST- VEH SCH  ',I6)
+ #else NOCC
  20	FORMAT(' SCHLST- VEH SCH  ',I6)
+ #endif NOCC
  #endif debug
  	IF(NOBJ) 1100,400,300
  C						!TEST RESULT.
***************
*** 71,77 ****
--- 79,89 ----
  C						!SEARCH ADVENTURER.
  #ifdef debug
  	IF(DFLAG) PRINT 30,NOBJ
+ #ifdef NOCC
+ 30	FORMAT('SCHLST- ADV SCH  ',I6)
+ #else NOCC
  30	FORMAT(' SCHLST- ADV SCH  ',I6)
+ #endif NOCC
  #endif debug
  	IF(NOBJ) 1100,600,500
  C						!TEST RESULT
***************
*** 99,105 ****
--- 111,121 ----
  C						!END OF SEARCH.
  #ifdef debug
  	IF(DFLAG) PRINT 40,GETOBJ
+ #ifdef NOCC
+ 40	FORMAT('SCHLST- RESULT   ',I6)
+ #else NOCC
  40	FORMAT(' SCHLST- RESULT   ',I6)
+ #endif NOCC
  #endif debug
  	RETURN
  	END
*** np3.F.orig	Fri Sep 25 17:02:57 1987
--- np3.F	Tue Dec  1 09:29:14 1987
***************
*** 45,51 ****
--- 45,55 ----
  C						!UNPACK SYNTAX.
  #ifdef debug
  	IF(DFLAG) PRINT 60,O1,P1,DOBJ,DFL1,DFL2
+ #ifdef NOCC
+ 60	FORMAT('SYNMCH INPUTS TO SYNEQL- ',5I7)
+ #else NOCC
  60	FORMAT(' SYNMCH INPUTS TO SYNEQL- ',5I7)
+ #endif NOCC
  #endif
  	SPREP=and(DOBJ,VPMASK)
  	IF(.NOT.SYNEQL(P1,O1,DOBJ,DFL1,DFL2)) GO TO 1000
***************
*** 74,80 ****
--- 78,88 ----
  C
  #ifdef debug
  	IF(DFLAG) PRINT 20,DRIVE,DFORCE
+ #ifdef NOCC
+ 20	FORMAT('SYNMCH, DRIVE=',2I6)
+ #else NOCC
  20	FORMAT(' SYNMCH, DRIVE=',2I6)
+ #endif NOCC
  #endif
  	IF(DRIVE.EQ.0) DRIVE=DFORCE
  C						!NO DRIVER? USE FORCE.
***************
*** 100,106 ****
--- 108,118 ----
  C						!GET GWIM.
  #ifdef debug
  	IF(DFLAG) PRINT 30,O1
+ #ifdef NOCC
+ 30	FORMAT('SYNMCH- DO GWIM= ',I6)
+ #else NOCC
  30	FORMAT(' SYNMCH- DO GWIM= ',I6)
+ #endif NOCC
  #endif debug
  	IF(O1.GT.0) GO TO 4000
  C						!TEST RESULT.
***************
*** 115,121 ****
--- 127,137 ----
  C						!GWIM.
  #ifdef debug
  	IF(DFLAG) PRINT 40,O2
+ #ifdef NOCC
+ 40	FORMAT('SYNMCH- IO GWIM= ',I6)
+ #else NOCC
  40	FORMAT(' SYNMCH- IO GWIM= ',I6)
+ #endif NOCC
  #endif debug
  	IF(O2.GT.0) GO TO 6000
  	IF(O1.EQ.0) O1=and(OFLAG,OSLOT)
***************
*** 151,157 ****
--- 167,177 ----
  	SYNMCH=.TRUE.
  #ifdef debug
  	IF(DFLAG) PRINT 50,SYNMCH,PRSA,PRSO,PRSI,ACT,O1,O2
+ #ifdef NOCC
+ 50	FORMAT('SYNMCH- RESULTS ',L1,6I7)
+ #else NOCC
  50	FORMAT(' SYNMCH- RESULTS ',L1,6I7)
+ #endif NOCC
  #endif
  	RETURN
  C
*** speak.F.orig	Thu Feb 12 11:08:41 1987
--- speak.F	Tue Dec  1 09:29:19 1987
***************
*** 36,42 ****
--- 36,46 ----
  &		FORM='UNFORMATTED',ACCESS='DIRECT',recl=76,err=60)
  C
  	print 20
+ #ifdef NOCC
  20	format('Sigh... '/)
+ #else NOCC
+ 20	format(' Sigh... '/)
+ #endif NOCC
  C
  C	get numbers and call speaking program
  C
***************
*** 54,59 ****
--- 58,75 ----
  60	print 970
  	print 980
  	goto 99
+ #ifdef NOCC
+ 960	FORMAT('I can''t open ',RTEXTFILE,'.')
+ 970	FORMAT('I can''t open ',TEXTFILE,'.')
+ 980	FORMAT('Suddenly a sinister, wraithlike figure appears before '
+ &	'you,'/'seeming to float in the air.  In a low, sorrowful voice'
+ &	' he says,'/'"Alas, the very nature of the world has changed, '
+ &	'and the dungeon'/'cannot be found.  All must now pass away."'
+ &	'  Raising his oaken staff'/'in farewell, he fades into the '
+ &	'spreading darkness.  In his place'/'appears a tastefully '
+ &	'lettered sign reading:'//23X,'INITIALIZATION FAILURE'//
+ &	'The darkness becomes all encompassing, and your vision fails.')
+ #else NOCC
  960	FORMAT(' I can''t open ',RTEXTFILE,'.')
  970	FORMAT(' I can''t open ',TEXTFILE,'.')
  980	FORMAT(' Suddenly a sinister, wraithlike figure appears before '
***************
*** 64,69 ****
--- 80,86 ----
  &	'spreading darkness.  In his place'/' appears a tastefully '
  &	'lettered sign reading:'//23X,'INITIALIZATION FAILURE'//
  &	' The darkness becomes all encompassing, and your vision fails.')
+ #endif NOCC
  99	stop
  	end
  C
***************
*** 116,122 ****
--- 133,143 ----
  C
  C  600	WRITE(OUTCH,650) (B1(J:J),J=1,I)		
  600	PRINT 650, (B1(J:J),J=1,I)		
+ #ifdef NOCC
+ 650	FORMAT(74A1)
+ #else NOCC
  650	FORMAT(1X,74A1)
+ #endif NOCC
  	X=X+1					
  	READ(UNIT=DBCH,REC=X) NEWREC,B1
  	IF(OLDREC.EQ.NEWREC) GO TO 100		
*** sverbs.F.orig	Tue Feb 10 11:32:11 1987
--- sverbs.F	Tue Dec  1 10:41:51 1987
***************
*** 16,22 ****
  	LOGICAL FINDXT,QHERE,F
  	INTEGER JOKES(25)
  	CHARACTER ANSSTR(78)
! 	CHARACTER P1(6),P2(6),CH(6)
  	INTEGER ANSWER(28)
  #include "parser.h"
  #include "gamestate.h"
--- 16,22 ----
  	LOGICAL FINDXT,QHERE,F
  	INTEGER JOKES(25)
  	CHARACTER ANSSTR(78)
! 	CHARACTER PP1(6),PP2(6),CH(6)
  	INTEGER ANSWER(28)
  #include "parser.h"
  #include "gamestate.h"
***************
*** 178,184 ****
--- 178,188 ----
  5000	call prvers(vmaj,vmin,vedit)
  #else
  5000	WRITE(OUTCH,5010) VMAJ,VMIN,VEDIT
+ #ifdef NOCC
+ 5010	FORMAT('V',I1,'.',I2,A1)
+ #else NOCC
  5010	FORMAT(' V',I1,'.',I2,A1)
+ #endif NOCC
  #endif PDP
  	TELFLG=.TRUE.
  	RETURN
***************
*** 427,432 ****
--- 431,457 ----
  	I=K/60
  	J=MOD(K,60)
  C
+ #ifdef NOCC
+ 	IF(I.EQ.0.AND.J.EQ.1) WRITE(OUTCH,21010) J
+ 	IF(I.EQ.0.AND.J.NE.1) WRITE(OUTCH,21011) J
+ 	IF(I.EQ.1.AND.J.EQ.1) WRITE(OUTCH,21012) I,J
+ 	IF(I.EQ.1.AND.J.NE.1) WRITE(OUTCH,21013) I,J
+ 	IF(I.GE.2.AND.J.EQ.1) WRITE(OUTCH,21014) I,J
+ 	IF(I.GE.2.AND.J.NE.1) WRITE(OUTCH,21015) I,J
+ 	TELFLG=.TRUE.
+ 	RETURN
+ C
+ 21010	FORMAT('You have been playing Dungeon for ',I2,' minute.')
+ 21011	FORMAT('You have been playing Dungeon for ',I2,' minutes.')
+ 21012	FORMAT('You have been playing Dungeon for ',I3,' hour and ',
+ &		I2,' minute.')
+ 21013	FORMAT('You have been playing Dungeon for ',I3,' hour and ',
+ &		I2,' minutes.')
+ 21014	FORMAT('You have been playing Dungeon for ',I3,' hours and ',
+ &		I2,' minute.')
+ 21015	FORMAT('You have been playing Dungeon for ',I3,' hours and ',
+ &		I2,' minutes.')
+ #else NOCC
  	WRITE(OUTCH,21010)
  	IF(I.NE.0) WRITE(OUTCH,21011) I
  	IF(I.GE.2) WRITE(OUTCH,21012)
***************
*** 442,447 ****
--- 467,473 ----
  21013	FORMAT('+ and ',$)
  21014	FORMAT('+',I2,' minute.')
  21015	FORMAT('+',I2,' minutes.')
+ #endif NOCC
  #endif PDP
  C
  C V91--	LEAP.  USUALLY A JOKE, WITH A CATCH.
***************
*** 526,532 ****
--- 552,562 ----
  	if(J .ne. 0) call cured(I)
  #else
   	IF(J.NE.0) WRITE(OUTCH,25100) I
+ #ifdef NOCC
+ 25100	FORMAT('You will be cured after ',I3,' moves.')
+ #else NOCC
  25100	FORMAT(' You will be cured after ',I3,' moves.')
+ #endif NOCC
  #endif PDP
  C
  	CALL RSPEAK(478+K)
***************
*** 540,547 ****
  C
  26000	DO 26100 I=1,6
  C						!SET UP PARSE.
! 	  P1(I)=' '
! 	  P2(I)=' '
  26100	CONTINUE
  	WP=1
  C						!WORD POINTER.
--- 570,577 ----
  C
  26000	DO 26100 I=1,6
  C						!SET UP PARSE.
! 	  PP1(I)=' '
! 	  PP2(I)=' '
  26100	CONTINUE
  	WP=1
  C						!WORD POINTER.
***************
*** 557,579 ****
  	  IF(CP.NE.1) WP=WP+1
  	  CP=1
  	  GO TO 26200
! 26150	  IF(WP.EQ.1) P1(CP)=INBUF(I)
  C						!STUFF INTO HOLDER.
! 	  IF(WP.EQ.2) P2(CP)=INBUF(I)
  	  CP=MIN0(CP+1,6)
  26200	CONTINUE
  C
  26300	PRSCON=1
  C						!KILL REST OF LINE.
! 	IF(P1(1).NE.' ') GO TO 26400
  C						!ANY INPUT?
  	CALL RSPEAK(856)
  C						!NO, HO HUM.
  	RETURN
  C
! 26400	CALL ENCRYP(P1,CH)
  C						!COMPUTE RESPONSE.
! 	IF(P2(1).NE.' ') GO TO 26600
  C						!TWO PHRASES?
  C
  	IF(SPELLF) GO TO 26550
--- 587,609 ----
  	  IF(CP.NE.1) WP=WP+1
  	  CP=1
  	  GO TO 26200
! 26150	  IF(WP.EQ.1) PP1(CP)=INBUF(I)
  C						!STUFF INTO HOLDER.
! 	  IF(WP.EQ.2) PP2(CP)=INBUF(I)
  	  CP=MIN0(CP+1,6)
  26200	CONTINUE
  C
  26300	PRSCON=1
  C						!KILL REST OF LINE.
! 	IF(PP1(1).NE.' ') GO TO 26400
  C						!ANY INPUT?
  	CALL RSPEAK(856)
  C						!NO, HO HUM.
  	RETURN
  C
! 26400	CALL ENCRYP(PP1,CH)
  C						!COMPUTE RESPONSE.
! 	IF(PP2(1).NE.' ') GO TO 26600
  C						!TWO PHRASES?
  C
  	IF(SPELLF) GO TO 26550
***************
*** 583,592 ****
  C						!TELL HIM.
  	TELFLG=.TRUE.
  #ifdef PDP
! 	call voice(P1,CH)
  #else
!  	WRITE(OUTCH,26510) P1,CH
  26510	FORMAT(' A hollow voice replies:  "',6A1,1X,6A1,'".')
  #endif PDP
  C
  	RETURN
--- 613,626 ----
  C						!TELL HIM.
  	TELFLG=.TRUE.
  #ifdef PDP
! 	call voice(PP1,CH)
  #else
!   	WRITE(OUTCH,26510) PP1,CH
! #ifdef NOCC
! 26510	FORMAT('A hollow voice replies:  "',6A1,1X,6A1,'".')
! #else NOCC
  26510	FORMAT(' A hollow voice replies:  "',6A1,1X,6A1,'".')
+ #endif NOCC
  #endif PDP
  C
  	RETURN
***************
*** 601,607 ****
  C
  26600	IF(and(RFLAG(TSTRS),RSEEN).NE.0) GO TO 26800
  	DO 26700 I=1,6
! 	  IF(P2(I).NE.CH(I)) GO TO 26575
  C						!WRONG.
  26700	CONTINUE
  	SPELLF=.TRUE.
--- 635,641 ----
  C
  26600	IF(and(RFLAG(TSTRS),RSEEN).NE.0) GO TO 26800
  	DO 26700 I=1,6
! 	  IF(PP2(I).NE.CH(I)) GO TO 26575
  C						!WRONG.
  26700	CONTINUE
  	SPELLF=.TRUE.
