# File: hr_ve_fe_me_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/prep/src/hr_ve_fe_me_v01.src"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    hr_ve_fe_me.ips
#; PURPOSE: Make a high resolution magnetogram and average doppler
#;	   downlink the extracted dopplergram, continuum filtergram
#;	   and magnetogram.
#; HISTORY: 22-Jul-96 by M.Morrison
#
#QPROG_HR_VE_FE_ME::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1D26    0x01AE 0x0C00 0x000A 0x1D42 
#								;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 0x1D2A    0x01F8 0x1663 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x1D2C    0x01B8 0x0C00 0x0009 0x1D42 
#
#    COPYRD2D $IPRL_EXTRACT_50K $IPRL_EXTRACT_PARAM 6            ;
tcblock mbipmacl 0x1D30    0x0144 0x14E3 0x1173 0x0006 
#    CALLQUE  $QSR_STD_EFMT_CONTF	;---- Extract 500 lines from con
tcblock mbipmacl 0x1D34    0x01F8 0x1854 
#    CALLQUE  $QSR_STD_EFMT_VEL		;---- Extract 500 lines from velo
tcblock mbipmacl 0x1D36    0x01F8 0x1842 
#    CALLQUE  $QSR_STD_EFMT_MAG		;---- Extract 500 lines from magn
tcblock mbipmacl 0x1D38    0x01F8 0x185A 
#
#    ;---- Downlink the one observable
#    SETREG  $IPRL_DL_PARAM 0x9800				;downlink cont filt
tcblock mbipmacl 0x1D3A    0x0140 0x11D0 0x9800 
#    CALLQUE $QSR_DL_1PAGE
tcblock mbipmacl 0x1D3D    0x01F8 0x0DA0 
#
#    SETREG $IPRL_CB_ADDR &QCB_REENTRY                           ;
tcblock mbipmacl 0x1D3F    0x0140 0x0C20 0x1D43 
#DONE:
#
#    END
tcblock mbipmacl 0x1D42    0x01FC 
#
#;----------------------- Start of callback code
#QCB_REENTRY:
#    BRANCHEQ R3072  5  &CB_FRM05
tcblock mbipmacl 0x1D43    0x01AE 0x0C00 0x0005 0x1D49 
#    GOTO &QSR_CB_DONE_ADDR
tcblock mbipmacl 0x1D47    0x0156 0x0FFF 
#
#CB_FRM05:
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x6800 0x9000			;downlink vel and 2
tcblock mbipmacl 0x1D49    0x01B2 0x11D0 0x0002 0x6800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1D4E    0x01F8 0x0DA5 
#    SETREG $IPRL_CB_ADDR 0                                      ;
tcblock mbipmacl 0x1D50    0x0140 0x0C20 0x0000 
#    GOTO &QSR_CB_DONE_ADDR
tcblock mbipmacl 0x1D53    0x0156 0x0FFF 
#=======================================================
#
return
#
#=======================================================
