aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/rpp/ratlibf/dsinit.f
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/boot/spp/rpp/ratlibf/dsinit.f
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'unix/boot/spp/rpp/ratlibf/dsinit.f')
-rw-r--r--unix/boot/spp/rpp/ratlibf/dsinit.f17
1 files changed, 17 insertions, 0 deletions
diff --git a/unix/boot/spp/rpp/ratlibf/dsinit.f b/unix/boot/spp/rpp/ratlibf/dsinit.f
new file mode 100644
index 00000000..9eb0ebad
--- /dev/null
+++ b/unix/boot/spp/rpp/ratlibf/dsinit.f
@@ -0,0 +1,17 @@
+ subroutine dsinit (w)
+ integer w
+ integer mem( 1)
+ common/cdsmem/mem
+ integer t
+ if (.not.(w .lt. 2 * 2 + 2))goto 23000
+ call error (42Hin dsinit: unreasonably small memory size.)
+23000 continue
+ t = 2
+ mem (t + 0) = 0
+ mem (t + 1) = 2 + 2
+ t = 2 + 2
+ mem (t + 0) = w - 2 - 1
+ mem (t + 1) = 0
+ mem (1) = w
+ return
+ end