# File: crop480_v1_m1_v03.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "crop480_v1_m1_v03.ips"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    crop480_v1_m1.ips
#; PURPOSE: Make a full disk magnetogram and average dopplergram a
#;	   downlink them cropped to radius of 480 pixels.
#; HISTORY:
#;        8-Dec-98 Dnyanesh Mathur (Adapted from Mons' fd_v1_m1 an
#
#QPROG_CROP480_V1_M1::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1F80    0x01AE 0x0C00 0x000A 0x1F99 
#								;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 0x1F84    0x01F8 0x1680 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x1F86    0x01B8 0x0C00 0x0009 0x1F99 
#
#    COPYRD2D $IPRL_CROP_RAD480  $IPRL_CROP_PARAM+4 5
tcblock mbipmacl 0x1F8A    0x0144 0x1482 0x146E 0x0005 
#    CALLQUE  $QSR_STD_CFMT_VEL		;---- Crop velocity
tcblock mbipmacl 0x1F8E    0x01F8 0x1818 
#    CALLQUE  $QSR_STD_CFMT_MAG		;---- Crop magnetogram
tcblock mbipmacl 0x1F90    0x01F8 0x1830 
#
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x6800 0x9000 			;downlink vel and 
tcblock mbipmacl 0x1F92    0x01B2 0x11D0 0x0002 0x6800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1F97    0x01F8 0x0DA5 
#
#DONE:
#    END
tcblock mbipmacl 0x1F99    0x01FC 
#=======================================================
#
return
#
#=======================================================
