# File: fd_m1_crop480_v1_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "fd_m1_crop480_v1_v01.ips"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    fd_m1_crop480_v1.ips
#; PURPOSE: Make a full disk magnetogram and averaged dopplergram 
#;	   downlink them cropped to radii of 504 and 480 pixels
#;          respectively.
#; HISTORY:
#;        28-Jan-99 Dnyanesh Mathur (Adapted from crop480_v1_m1)
#;
#QPROG_FD_M1_CROP480_V1::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1FA0    0x01AE 0x0C00 0x000A 0x1FBD 
#								;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 0x1FA4    0x01F8 0x1680 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x1FA6    0x01B8 0x0C00 0x0009 0x1FBD 
#
#    COPYRD2D $IPRL_CROP_RAD480  $IPRL_CROP_PARAM+4 5
tcblock mbipmacl 0x1FAA    0x0144 0x1482 0x146E 0x0005 
#    CALLQUE  $QSR_STD_CFMT_VEL		;---- Crop velocity
tcblock mbipmacl 0x1FAE    0x01F8 0x1818 
#;
#    COPYRD2D $IPRL_CROP_RAD504  $IPRL_CROP_PARAM+4 5
tcblock mbipmacl 0x1FB0    0x0144 0x147D 0x146E 0x0005 
#    CALLQUE  $QSR_STD_CFMT_MAG		;---- Crop magnetogram
tcblock mbipmacl 0x1FB4    0x01F8 0x1830 
#
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x6800 0x9000 			;downlink vel and 
tcblock mbipmacl 0x1FB6    0x01B2 0x11D0 0x0002 0x6800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1FBB    0x01F8 0x0DA5 
#
#DONE:
#    END
tcblock mbipmacl 0x1FBD    0x01FC 
#=======================================================
#
return
#
#=======================================================
