# File: hr_t_fe_me_v2_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/prep/src/hr_t_fe_me_v2_v01.src"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    hr_t_fe_me_v2.ips
#; PURPOSE: Make a high resolution magnetogram and average doppler
#;	   downlink the extracted magnetogram and confinuum filtergram
#;	   and the full 2x2 bin dopplergram.  Track for solar rotation
#; HISTORY: Written 2-Oct-96 by M.Morrison
#
#QPROG_HR_T_FE_ME_V2::
#
#    CALLQUE  $QSR_TRACK_ROT
tcblock mbipmacl 0x0EC0    0x01F8 0x0B50 
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x0EC2    0x01AE 0x0C00 0x000A 0x0EE5 
#								;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_HR_MVL30					;do all of the work
tcblock mbipmacl 0x0EC6    0x01F8 0x1663 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x0EC8    0x01B8 0x0C00 0x0009 0x0EE5 
#
#    COPYRD2D $IPRL_EXT_HR_T_FE_ME_V2 $IPRL_EXTRACT_PARAM 6       
tcblock mbipmacl 0x0ECC    0x0144 0x1528 0x1173 0x0006 
#    CALLQUE  $QSR_STD_EFMT_CONTF	;---- Extract from continuum and
tcblock mbipmacl 0x0ED0    0x01F8 0x1854 
#    CALLQUE  $QSR_STD_EFMT_MAG		;---- Extract from magnetogram
tcblock mbipmacl 0x0ED2    0x01F8 0x185A 
#
#    ;---- Bin the velocity data
#    SETREGS  $IPRL_BIN_PARAM 4 7:0x0726 13:0x0726 		;setup source
tcblock mbipmacl 0x0ED4    0x01B2 0x11E9 0x0004 0x0726 \
                                0x3800 0x0726 0x6800 
#    CALLQUE  $QSR_FMT_2X2BIN
tcblock mbipmacl 0x0EDB    0x01F8 0x1132 
#
#    ;---- Downlink the one observable
#    SETREG  $IPRL_DL_PARAM 0x6800				;downlink vel
tcblock mbipmacl 0x0EDD    0x0140 0x11D0 0x6800 
#    CALLQUE $QSR_DL_1PAGE
tcblock mbipmacl 0x0EE0    0x01F8 0x0DA0 
#
#    SETREG $IPRL_CB_ADDR &QCB_REENTRY                           ;
tcblock mbipmacl 0x0EE2    0x0140 0x0C20 0x0EE6 
#DONE:
#
#    END
tcblock mbipmacl 0x0EE5    0x01FC 
#
#;----------------------- Start of callback code
#QCB_REENTRY:
#    BRANCHEQ R3072  5  &CB_FRM05
tcblock mbipmacl 0x0EE6    0x01AE 0x0C00 0x0005 0x0EEC 
#    GOTO &QSR_CB_DONE_ADDR
tcblock mbipmacl 0x0EEA    0x0156 0x0FFF 
#
#CB_FRM05:
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x9800 0x9000			;downlink cont filt
tcblock mbipmacl 0x0EEC    0x01B2 0x11D0 0x0002 0x9800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x0EF1    0x01F8 0x0DA5 
#    SETREG $IPRL_CB_ADDR 0                                      ;
tcblock mbipmacl 0x0EF3    0x0140 0x0C20 0x0000 
#    GOTO &QSR_CB_DONE_ADDR
tcblock mbipmacl 0x0EF6    0x0156 0x0FFF 
#=======================================================
#
return
#
#=======================================================
