aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/rpp/rpprat/swvar.r
diff options
context:
space:
mode:
Diffstat (limited to 'unix/boot/spp/rpp/rpprat/swvar.r')
-rw-r--r--unix/boot/spp/rpp/rpprat/swvar.r22
1 files changed, 22 insertions, 0 deletions
diff --git a/unix/boot/spp/rpp/rpprat/swvar.r b/unix/boot/spp/rpp/rpprat/swvar.r
new file mode 100644
index 00000000..df8da344
--- /dev/null
+++ b/unix/boot/spp/rpp/rpprat/swvar.r
@@ -0,0 +1,22 @@
+#-h- swvar 157 local 12/01/80 15:55:08
+# swvar - output switch variable SWnnnn, where nnnn = lab
+# (modified aug82 dct to permit declaration of switch variable)
+
+ include defs
+
+ subroutine swvar (lab)
+ integer lab, i, labnum, ndigits
+
+ ifnotdef (UPPERC, call outch (LETS))
+ ifdef (UPPERC, call outch (BIGS))
+ ifnotdef (UPPERC, call outch (LETW))
+ ifdef (UPPERC, call outch (BIGW))
+
+ labnum = lab
+ for (ndigits=0; labnum > 0; labnum=labnum/10)
+ ndigits = ndigits + 1
+ for (i=3; i <= 6 - ndigits; i=i+1)
+ call outch (DIG0)
+ call outnum (lab)
+ return
+ end