This is a cross-referenced version of addr.plan, to download the unmodified source try addr.plan.
#PROGRAM       /GFADDR(15AM,22AM,DBM,EBM)
#PAGE

#INCLUDE       STACK(/DEFS)

#PROGRAM

#              Return address of array to Fortran caller

#              int gfaddr (int *array)

#SET           ARGS=0

#DEFINE        ARGARRAY=ARGS
#SET           ARGS=ARGS+1

      OBEY     ARGARRAY(1)
      ARRAY 3                       [ get address from array desc
      STO   3  6                    [ and move to X6 for return

      EXIT  1  ARGS

#END
#FINISH