# File: fd_m1_f1_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/flight/src/fd_m1_f1_v01.src"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    fd_m1_f1.ips
#; PURPOSE: Make a full resolution magnetogram and
#;	   downlink the extracted continuum filtergram and magnetogram
#; HISTORY: 16-Oct-96 by M.Morrison
#
#QPROG_FD_M1_F1::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1E57    0x01AE 0x0C00 0x000A 0x1E70 
#								;the processing at frame 9 takes so long
#								;that when it returns from the "HR_MVL30"
#								;subroutine call, the frame number has changed!
#
#    CALLQUE  $QSR_FD_MVL30					;do all of the work
tcblock mbipmacl 0x1E5B    0x01F8 0x1680 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x1E5D    0x01B8 0x0C00 0x0009 0x1E70 
#
#    COPYRD2D $IPRL_CROP_RAD504 $IPRL_CROP_PARAM+4 5
tcblock mbipmacl 0x1E61    0x0144 0x147D 0x146E 0x0005 
#    CALLQUE  $QSR_STD_CFMT_CONTF	;---- crop continuum and compres
tcblock mbipmacl 0x1E65    0x01F8 0x182A 
#    CALLQUE  $QSR_STD_CFMT_MAG		;---- crop mag
tcblock mbipmacl 0x1E67    0x01F8 0x1830 
#
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x9000 0x9800			;downlink 
tcblock mbipmacl 0x1E69    0x01B2 0x11D0 0x0002 0x9000 \
                                0x9800 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1E6E    0x01F8 0x0DA5 
#
#DONE:
#    END
tcblock mbipmacl 0x1E70    0x01FC 
#=======================================================
#
return
#
#=======================================================
