aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gki/gkirca.x
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 /sys/gio/gki/gkirca.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/gio/gki/gkirca.x')
-rw-r--r--sys/gio/gki/gkirca.x30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/gio/gki/gkirca.x b/sys/gio/gki/gkirca.x
new file mode 100644
index 00000000..54b38813
--- /dev/null
+++ b/sys/gio/gki/gkirca.x
@@ -0,0 +1,30 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <gki.h>
+
+# GKI_RETCELLARRAY -- Return a cell array (pixel array). Used by a graphics
+# kernel to return a cell array to GIO in response to a GETCELLARRAY
+# instruction.
+#
+# BOI GKI_CELLARRAY L NP P
+#
+# L(i) 4 + NP
+# NP(i) number of pixels in cell array
+# P(NPi) cell array
+
+procedure gki_retcellarray (fd, m, np)
+
+int fd # output file
+short m[ARB] # cell array
+int np # number of pixels in cell array
+
+short gki[GKI_CELLARRAY_LEN]
+data gki[1] /BOI/, gki[2] /GKI_CELLARRAY/
+
+begin
+ gki[GKI_CELLARRAY_L] = GKI_CELLARRAY_LEN + np
+ gki[GKI_CELLARRAY_NP] = np
+
+ call write (fd, gki, GKI_CELLARRAY_LEN * SZ_SHORT)
+ call write (fd, m, np * SZ_SHORT)
+end