# File: fd_m1_v2_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/prep/src/fd_m1_v2_v01.src"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    fd_m1_v2.ips
#; PURPOSE: Make a full disk magnetogram and average dopplergram a
#;	   downlink the cropped mag and 2x2 binned velocity
#; HISTORY: 22-Jul-96 by M.Morrison
#;	23-Jul-96 (MDM) - Corrected call to STD_FMT
#
#QPROG_FD_M1_V2::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1BC2    0x01AE 0x0C00 0x000A 0x1BE2 
#								;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 0x1BC6    0x01F8 0x167D 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x1BC8    0x01B8 0x0C00 0x0009 0x1BE2 
#
#    COPYRD2D $IPRL_CROP_RAD504 $IPRL_CROP_PARAM+4 5
tcblock mbipmacl 0x1BCC    0x0144 0x147D 0x146E 0x0005 
#    CALLQUE  $QSR_STD_CFMT_MAG
tcblock mbipmacl 0x1BD0    0x01F8 0x1830 
#
#    ;---- Bin the velocity
#    SETREGS  $IPRL_BIN_PARAM 4 7:0x0726 13:0x0726               ;
tcblock mbipmacl 0x1BD2    0x01B2 0x11E9 0x0004 0x0726 \
                                0x3800 0x0726 0x6800 
#    CALLQUE  $QSR_FMT_2X2BIN
tcblock mbipmacl 0x1BD9    0x01F8 0x1132 
#
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x6800 0x9000			;downlink vel and m
tcblock mbipmacl 0x1BDB    0x01B2 0x11D0 0x0002 0x6800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1BE0    0x01F8 0x0DA5 
#
#DONE:
#    END
tcblock mbipmacl 0x1BE2    0x01FC 
#=======================================================
#
return
#
#=======================================================
