# File: m1c492_p30vc480_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "m1c492_p30vc480_v01.ips"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    m1c492_p30vc480.ips
#; PURPOSE: Make a full disk magnetogram and averaged dopplergram 
#;	   downlink them cropped to radii of 492 and 480 pixels
#;          respectively. The dopplergram is the one constructed d
#;          the structure (prime 30) period.
#; HISTORY:
#;        29-Mar-99 Dnyanesh Mathur (Adapted from fd_m1_crop480_p3
#;
#QPROG_M1C492_P30VC480::
#
#    CALLQUE  $QSR_STORE_P30V                                    ;
tcblock mbipmacl 0x1F7E    0x01F8 0x1898 
#                                                                ;
#                                                                ;
#
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x1F80    0x01AE 0x0C00 0x000A 0x1F9D 
#								;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 0x1F9D 
#
#    COPYRD2D $IPRL_CROP_RAD480  $IPRL_CROP_PARAM+4 5
tcblock mbipmacl 0x1F8A    0x0144 0x1482 0x146E 0x0005 
#    CALLQUE  $QSR_STD_CFMT_PVEL		;---- Crop P30 velocity (page 11
tcblock mbipmacl 0x1F8E    0x01F8 0x183C 
#;
#    COPYRD2D $IPRL_CROP_RAD492  $IPRL_CROP_PARAM+4 5
tcblock mbipmacl 0x1F90    0x0144 0x15EF 0x146E 0x0005 
#    CALLQUE  $QSR_STD_CFMT_MAG		;---- Crop magnetogram
tcblock mbipmacl 0x1F94    0x01F8 0x1830 
#
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x7800 0x9000 			;downlink vel and 
tcblock mbipmacl 0x1F96    0x01B2 0x11D0 0x0002 0x7800 \
                                0x9000 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x1F9B    0x01F8 0x0DA5 
#
#DONE:
#    END
tcblock mbipmacl 0x1F9D    0x01FC 
#=======================================================
#
return
#
#=======================================================
