Skip to content

Commit

Permalink
Tool to add or remove DEC-style line numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbrinkhoff committed Apr 9, 2022
1 parent e0849ea commit 86ac7f1
Show file tree
Hide file tree
Showing 13 changed files with 392 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ dump
check
constantinople
dumper
linum
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ OBJS = pdp10-opc.o info.o dis.o symbols.o \
UTILS = cat36 itsarc magdmp magfrm dskdmp dump \
macdmp macro-tapes tape-dir harscntopbm palx cross \
ipak kldcp klfedr scrmbl unscr tvpic tito dart od10 \
constantinople dumper
constantinople dumper linum

all: dis10 $(UTILS) check

Expand Down Expand Up @@ -80,6 +80,9 @@ dumper: dumper.o $(OBJS) libwords.a
od10: od10.o $(OBJS) libwords.a
$(CC) $(CFLAGS) $^ -o $@

linum: linum.o $(OBJS) libwords.a
$(CC) $(CFLAGS) $^ -o $@

constantinople: constantinople.o $(OBJS) libfiles.a libwords.a
$(CC) $(CFLAGS) $^ -o $@

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ is elsewhere: http://github.com/larsbrinkhoff/mldev
- List or extract files from a TITO tape (Tymshare TYMCOM-X).
- List, extract, or write files on a DART tape (SAIL WAITS).
- Write files on a DUMPER tape (BBN TENEX, DEC TOPS-20).
- Add or delete DEC-style text file line numbers.

## File formats supported.

Expand Down
11 changes: 11 additions & 0 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ test_dump() {
compare "$1.dump"
}

test_linum() {
./linum -Wascii "$1" samples/"$2" > out/"$2$1"
compare "$2$1"
}

test_dis10 ts.obs
test_dis10 ts.ksfedr
test_dis10 ts.name "-Sall"
Expand Down Expand Up @@ -96,4 +101,10 @@ test_dump l.bin "-Fpalx -Xoct -Oraw"
test_dump logo.ptp "-Fhex -Xoct -Oraw"
test_dump supdup.bin "-Wits -Fcross -Xoct -Oraw"

test_linum -a linum-1.txt
test_linum -df linum-1.txt
test_linum -af linum-2.txt
test_linum -df linum-2.txt
test_linum -d linum-3.txt

exit 0
Loading

0 comments on commit 86ac7f1

Please sign in to comment.