# File: hr_m1_v2_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/prep/src/hr_m1_v2_v01.src"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    hr_m1_v2.ips
#; PURPOSE: Make a high resolution magnetogram and average doppler
#;	   downlink the full mag and a 2x2 bin velocity.
#; HISTORY: 2-May-96 by M.Morrison
#
#QPROG_HR_M1_V2::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1C89    0x01AE 0x0C00 0x000A 0x1CA3 
#								;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 0x1C8D    0x01F8 0x1663 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x1C8F    0x01B8 0x0C00 0x0009 0x1CA3 
#
#    ;---- Bin the velocity data
#    SETREGS  $IPRL_BIN_PARAM 4 7:0x0726 18:0x0726 		;setup source
tcblock mbipmacl 0x1C93    0x01B2 0x11E9 0x0004 0x0726 \
                                0x3800 0x0726 0x9000 
#    CALLQUE  $QSR_FMT_2X2BIN
tcblock mbipmacl 0x1C9A    0x01F8 0x1132 
#
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x8800 0x9000			;downlink mag and 2
tcblock mbipmacl 0x1C9C    0x01B2 0x11D0 0x0002 0x8800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1CA1    0x01F8 0x0DA5 
#
#DONE:
#    END
tcblock mbipmacl 0x1CA3    0x01FC 
#=======================================================
#
return
#
#=======================================================
