1 |
mocchiut |
1.1 |
C------------------------------------------------ |
2 |
|
|
SUBROUTINE FAFEDE3(head,silofa) |
3 |
|
|
C------------------------------------------------ |
4 |
|
|
|
5 |
|
|
IMPLICIT NONE |
6 |
|
|
C |
7 |
|
|
C Normal variables definition |
8 |
|
|
C |
9 |
|
|
INTEGER ERROR |
10 |
|
|
C |
11 |
|
|
INTEGER i, j, ival |
12 |
|
|
C |
13 |
|
|
INTEGER*4 head |
14 |
|
|
C |
15 |
|
|
INTEGER ic, k, ke |
16 |
|
|
INTEGER*4 status |
17 |
|
|
INTEGER inf, sup |
18 |
|
|
INTEGER XO, YO, XE, YE |
19 |
|
|
integer silofa |
20 |
|
|
|
21 |
|
|
INTEGER*2 length, length2 |
22 |
|
|
|
23 |
|
|
integer*4 st3 |
24 |
|
|
INTEGER*2 st1,st4 |
25 |
|
|
INTEGER st2 |
26 |
|
|
|
27 |
|
|
REAL CAL_PED(4,11,96), CAL_GOOD(4,11,96), CAL_THR(4,11,6) |
28 |
|
|
REAL CAL_RMS(4,11,96), CAL_BASE(4,11,6), CAL_VAR(4,11,6) |
29 |
|
|
|
30 |
|
|
DATA XO/177/ ! CODE_DSP_R XO = 101 10001 |
31 |
|
|
DATA YO/173/ ! CODE_DSP_R YO = 101 01101 |
32 |
|
|
DATA XE/170/ ! CODE_DSP_R XE = 101 01010 |
33 |
|
|
DATA YE/182/ ! CODE_DSP_R YE = 101 10110 |
34 |
|
|
|
35 |
|
|
C |
36 |
|
|
C Begin ! |
37 |
|
|
C |
38 |
|
|
ERROR = 0 |
39 |
|
|
ival = 0 |
40 |
|
|
C |
41 |
|
|
C |
42 |
|
|
C Check consistency of status word. |
43 |
|
|
C |
44 |
|
|
st1 = IAND(head,'0000FFFF'x) |
45 |
|
|
c write (*,10) st1 |
46 |
|
|
c print *,'in decimale: ',st1 |
47 |
|
|
status = ISHFT(head,-16) |
48 |
|
|
st2 = IAND(status,'0000FF00'x) |
49 |
|
|
c write (*,20) st2 |
50 |
|
|
c print *,'in decimale: ',st2 |
51 |
|
|
IF (ST1.EQ.-1282.AND.ST2.EQ.56832) SILOFA = 1 |
52 |
|
|
c |
53 |
|
|
10 FORMAT(2X,'Status word 1:',2X,Z8) |
54 |
|
|
20 FORMAT(2X,'Status word 2:',2X,Z4) |
55 |
|
|
100 continue |
56 |
|
|
C |
57 |
|
|
RETURN |
58 |
|
|
END |
59 |
|
|
|
60 |
|
|
|