[pdp7-unix] added tools/compare script

Phil Budne phil at ultimate.com
Fri Oct 25 06:54:55 AEST 2019


The script scrubs comments that have a <TAB> before the " to help
compare files in the scans and src/{cmd,sys} directories (to spot
changes which haven't been propogated to the other)

For example:

phil at p27:~/pdp7-unix$ ./tools/compare scans/as.s src/cmd/as.s
--- /tmp/compare25974/scan/as.s	2019-10-24 16:51:52.981953235 -0400
+++ /tmp/compare25974/src/as.s	2019-10-24 16:51:52.985953284 -0400
@@ -185,6 +185,7 @@
    lac bfi
    sys close
    sys exit
+
 "** 05-1-4.pdf page 35
 n.out:
    0156056;0157165;0164040;040040
@@ -266,7 +267,7 @@
    dac maxsto
    jmp i bufwr
 
-:number: 0
+number: 0
    dac 3f
    lac d1000
    dac 2f
@@ -331,6 +332,7 @@
 sctalp: 0
 sctal: 0
 
+
 betwen: 0
    dac 2f
    lac i betwen
@@ -464,7 +466,7 @@
    lac fname
    dac 1f
    lac d1
-   sys write; 1; 0; 4
+   sys write; 1: 0; 4
    lac iof
    sma
    jmp 1f
@@ -539,7 +541,6 @@
    dac char
 1:
    jmp 0
-
 jmpsw1:
    jmp .+1
    jmp i gsymb
@@ -991,7 +992,6 @@
 fakename: .=.+6
 namlst:
 .=.+4
-"** 05-1-4.pdf page 48
 dot:
 .=.+6
 cmflx:



More information about the pdp7-unix mailing list