Skip to content

Commit

Permalink
XFILE scripts for building the hello world programs.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbrinkhoff committed Sep 7, 2023
1 parent d307059 commit 1690107
Show file tree
Hide file tree
Showing 18 changed files with 103 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build/misc.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1842,3 +1842,23 @@ expect ":KILL"
# STINK 121T, used to build Muddle and some old programs
respond "*" ":midas mudsys;ts stink_sysen2;stink 121t\r"
expect ":KILL"

# Move hello world xfiles into an archive.
respond "*" ":cwd hello\r"
respond "*" ":move dsk:c xfile, ar:\r"
respond "*" ":move dsk:clu xfile, ar:\r"
respond "*" ":move dsk:clu xxfile, ar:\r"
respond "*" ":move dsk:fail xfile, ar:\r"
respond "*" ":move dsk:fail xxfile, ar:\r"
respond "*" ":move dsk:fortra xfile, ar:\r"
respond "*" ":move dsk:fortra xxfile, ar:\r"
respond "*" ":move dsk:lisp xfile, ar:\r"
respond "*" ":move dsk:lisp xxfile, ar:\r"
respond "*" ":move dsk:macro xfile, ar:\r"
respond "*" ":move dsk:macro xxfile, ar:\r"
respond "*" ":move dsk:midas xfile, ar:\r"
respond "*" ":move dsk:muddle xfile, ar:\r"
respond "*" ":move dsk:muddle xxfile, ar:\r"
respond "*" ":move dsk:palx xfile, ar:\r"
respond "*" ":move dsk:palx xxfile, ar:\r"
respond "*" ":rename dsk:ar >, ar xfiles\r"
3 changes: 3 additions & 0 deletions doc/hello/-read-.-this-
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
This directory contains "hello world" examples for some of the
programming languages found in ITS.

The AR XFILES achive has scripts for building programs. Use the
:XFILE command to run them.
3 changes: 3 additions & 0 deletions src/hello/c.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:cwd hello
:cc hello.c
:stinkr hello
2 changes: 2 additions & 0 deletions src/hello/clu.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:xxfile tty:_ar:clu xxfile
7 changes: 7 additions & 0 deletions src/hello/clu.xxfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:cwd hello
:clu hello
:sleep 100
:clu;clusys
fload("hello bin")
gc_pure_dump("hello; ts hello")
2 changes: 2 additions & 0 deletions src/hello/fail.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:xxfile tty:_ar:fail xxfile
9 changes: 9 additions & 0 deletions src/hello/fail.xxfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:cwd hello
:fail
hello fai

.
:stink hello
1L decsys; decbot bin
.jbsa/ start
:pdump ts hello
2 changes: 2 additions & 0 deletions src/hello/fortra.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:xxfile tty:_ar:fortra xxfile
9 changes: 9 additions & 0 deletions src/hello/fortra.xxfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:cwd hello
:dec sys:f40
hello=hello.for
.
:dec sys:loader
hello/g
45gd
:pdump ts hello
.
2 changes: 2 additions & 0 deletions src/hello/lisp.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:xxfile tty:_ar:lisp xxfile
5 changes: 5 additions & 0 deletions src/hello/lisp.xxfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:cwd hello
:complr
hello lisp
.
:lisp hello (dump)
2 changes: 2 additions & 0 deletions src/hello/macro.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:xxfile tty:_ar:macro xxfile
9 changes: 9 additions & 0 deletions src/hello/macro.xxfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:cwd hello
:macro
hello=hello.mac
.
:dec sys:loader
hello/g
45gd
:pdump ts hello
.
2 changes: 2 additions & 0 deletions src/hello/midas.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:midas ts hello_hello mid
2 changes: 2 additions & 0 deletions src/hello/muddle.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:xxfile tty:_ar:muddle xxfile
14 changes: 14 additions & 0 deletions src/hello/muddle.xxfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:cwd hello
:pcomp
<FILE-COMPILE "HELLO MUD" "HELLO NBIN">
:sleep 100
P
<QUIT>
:mud55
<FLOAD "HELLO NBIN">
<SAVE-IT>
:midas ts hello_mudsys; subsys maker
hello
y
save
hello
2 changes: 2 additions & 0 deletions src/hello/palx.xfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:cwd hello
:xxfile tty:_ar:palx xxfile
8 changes: 8 additions & 0 deletions src/hello/palx.xxfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
:cwd hello
:palx hello palx
:pdp11
;l hello bin
;g

:sleep 60
.

0 comments on commit 1690107

Please sign in to comment.