# File: fd_ve_fe_me_v02.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/flight/src/fd_ve_fe_me_v02.src"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    fd_ve_fe_me.ips
#; PURPOSE: Make a full resolution magnetogram and average doppler
#;	   downlink the extracted dopplergram, continuum filtergram
#;	   and magnetogram.
#; HISTORY: 14-Oct-96 by M.Morrison
#
#QPROG_FD_VE_FE_ME::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1E75    0x01AE 0x0C00 0x000A 0x1E91 
#								;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 0x1E79    0x01F8 0x1680 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x1E7B    0x01B8 0x0C00 0x0009 0x1E91 
#
#    COPYRD2D $IPRL_EXTRACT_50K $IPRL_EXTRACT_PARAM 6            ;
tcblock mbipmacl 0x1E7F    0x0144 0x14E3 0x1173 0x0006 
#    CALLQUE  $QSR_STD_EFMT_CONTF	;---- Extract 500 lines from con
tcblock mbipmacl 0x1E83    0x01F8 0x1854 
#    CALLQUE  $QSR_STD_EFMT_VEL		;---- Extract 500 lines from velo
tcblock mbipmacl 0x1E85    0x01F8 0x1842 
#    CALLQUE  $QSR_STD_EFMT_MAG		;---- Extract 500 lines from magn
tcblock mbipmacl 0x1E87    0x01F8 0x185A 
#
#    ;---- Downlink the one observable
#    SETREG  $IPRL_DL_PARAM 0x9800				;downlink cont filt
tcblock mbipmacl 0x1E89    0x0140 0x11D0 0x9800 
#    CALLQUE $QSR_DL_1PAGE
tcblock mbipmacl 0x1E8C    0x01F8 0x0DA0 
#
#    SETREG $IPRL_CB_ADDR &QCB_REENTRY                           ;
tcblock mbipmacl 0x1E8E    0x0140 0x0C20 0x1E92 
#DONE:
#
#    END
tcblock mbipmacl 0x1E91    0x01FC 
#
#;----------------------- Start of callback code
#QCB_REENTRY:
#    BRANCHEQ R3072  6  &CB_FRM06
tcblock mbipmacl 0x1E92    0x01AE 0x0C00 0x0006 0x1E98 
#    GOTO &QSR_CB_DONE_ADDR
tcblock mbipmacl 0x1E96    0x0156 0x0FFF 
#
#CB_FRM06:
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x6800 0x9000			;downlink vel and 2
tcblock mbipmacl 0x1E98    0x01B2 0x11D0 0x0002 0x6800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1E9D    0x01F8 0x0DA5 
#    SETREG $IPRL_CB_ADDR 0                                      ;
tcblock mbipmacl 0x1E9F    0x0140 0x0C20 0x0000 
#    GOTO &QSR_CB_DONE_ADDR
tcblock mbipmacl 0x1EA2    0x0156 0x0FFF 
#=======================================================
#
return
#
#=======================================================
