Fix TVLOC overflow check.
authorAdam Sampson <ats@offog.org>
Fri, 20 Apr 2018 13:19:54 +0000 (14:19 +0100)
committerAdam Sampson <ats@offog.org>
Fri, 20 Apr 2018 15:51:22 +0000 (16:51 +0100)
The .LOP .VALUE here is a link-time assert (.LOP runs an arbitrary
instruction). But the test is the wrong way round -- at the moment,
TVBASE=44000, TVLNT=6000, TVLOC=47560, so overflow hasn't occurred.

The 1973 version of the code uses .LIFL, which makes more sense to me...

<mdl.int>/initm.373

index bbd8fe696032c7a437087b5b6d9c2b82b9073b7b..a58362a5c4a440ac411861cc2f58e5c4191866bd 100644 (file)
@@ -21,7 +21,7 @@ IMPURE
 
 OBSIZE==151.   ;DEFAULT OBLIST SIZE
 
-.LIFG <TVBASE+TVLNT-TVLOC>
+.LIFL <TVBASE+TVLNT-TVLOC>
 .LOP .VALUE
 .ELDC