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

#              Provide SHIFT operation to Fortran

#              int gfshift (int arg1, int arg2)

#SET           ARGS=0

#DEFINE        ARG1=ARGS
#SET           ARGS=ARGS+1

#DEFINE        ARG2=ARGS
#SET           ARGS=ARGS+1

      OBEY     ARG1(1)
      LDX   6  0(3)                 [ Get 1st arg, thing to shift
      OBEY     ARG2(1)              [ get 2nd arg
      LDXC  3  0(3)                 [ amount to shift
      BCC      LEFT
      NGXC  3  3                    [ negative, shift right
      SRL   6  0(3)
      BRN      BYE
LEFT  SLL   6  0(3)
BYE   EXIT  1  ARGS

#END
#FINISH