$INCLUDE: 'C:\FG\INTRFACE.FOR'

      PROGRAM MAIN

      INTEGER*1 ARROW(21)
      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE, FG_TESTMODE

      DATA ARROW /
     +   #00,#0C,#00, #00,#0F,#00, #FF,#FF,#C0,
     +   #FF,#FF,#F0, #FF,#FF,#C0, #00,#0F,#00,
     +   #00,#0C,#00/

      IF (FG_TESTMODE(4,1) .EQ. 0) THEN
         STOP 'This program requires a 320 x 200 CGA graphics mode.'
      END IF

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(4)
      CALL FG_SETCOLOR(1)
      CALL FG_FILLPAGE
      CALL FG_SETCLIP(0,15,0,199)

      CALL FG_MOVE(10,10)
      CALL FG_DRWIMAGE(ARROW,3,7)
      CALL FG_MOVE(10,20)
      CALL FG_CLPIMAGE(ARROW,3,7)
      CALL FG_MOVE(8,30)
      CALL FG_REVIMAGE(ARROW,3,7)
      CALL FG_MOVE(8,40)
      CALL FG_FLPIMAGE(ARROW,3,7)
      CALL FG_MOVE(8,50)
      CALL FG_PUTIMAGE(ARROW,3,7)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
