h30399
s 00037/00000/00000
d D 1.1 83/02/02 19:28:32 tes 1 0
c date and time created 83/02/02 19:28:32 by tes
e
u
tes
mjb
U
t
T
I 1
subroutine pack2b (word, dest)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: pack an integer (16 bits) into two (2) bytes           #
#                                                                      #
#     Input Parameters:                                                #
#            word - input integer to be packed                         #
#                                                                      #
#     Output Parameters:                                               #
#            dest - byte string into which word is to be packed        #
#                                                                      #
#     Routines Called:                                                 #
#            None                                                      #
#                                                                      #
########################################################################
SHORTINT dest(2)
integer word

SHORTINT tmpbyt(2)
integer ktemp

equivalence (ktemp, tmpbyt(1))

ktemp = word
dest(1) = tmpbyt(1)
dest(2) = tmpbyt(2)

return
end
E 1
