Debian Codegraph @

libsrc/idi/fidi/deanza/gd8d2.for

raw
1 C @(#)gd8d2.for 19.1 (ES0-DMD) 02/25/03 13:55:08
2 C===========================================================================
3 C Copyright (C) 1995 European Southern Observatory (ESO)
4 C
5 C This program is free software; you can redistribute it and/or
6 C modify it under the terms of the GNU General Public License as
7 C published by the Free Software Foundation; either version 2 of
8 C the License, or (at your option) any later version.
9 C
10 C This program is distributed in the hope that it will be useful,
11 C but WITHOUT ANY WARRANTY; without even the implied warranty of
12 C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 C GNU General Public License for more details.
14 C
15 C You should have received a copy of the GNU General Public
16 C License along with this program; if not, write to the Free
17 C Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
18 C MA 02139, USA.
19 C
20 C Corresponding concerning ESO-MIDAS should be addressed as follows:
21 C Internet e-mail: [email protected]
22 C Postal address: European Southern Observatory
23 C Data Management Division
24 C Karl-Schwarzschild-Strasse 2
25 C D 85748 Garching bei Muenchen
26 C GERMANY
27 C===========================================================================
28 C
29 SUBROUTINE
30 + GD8006(DISPLAY,TOTCONF,SZX,SZY,DEPTH,NLUT,NITT,NCURS,IDST)
31 C
32 C++++++++++++++++++++++++++++++++++++++++++++++++++
33 C
34 C.IDENTIFICATION
35 C subroutine IIDQDV version 1.00 880118
36 C K. Banse ESO - Garching
37 C
38 C.KEYWORDS
39 C DeAnza, configuration
40 C
41 C.PURPOSE
42 C fulfill the requirements as described in the IDI document
43 C
44 C.ALGORITHM
45 C use DeAnza level 0 + 1 software
46 C
47 C.INPUT/OUTPUT
48 C call as IIDQDV(DISPLAY,TOTCONF,SZX,SZY,DEPTH,NLUT,NITT,NCURS,IDST)
49 C
50 C input par:
51 C DISPLAY: I*4 display id.
52 C
53 C output par:
54 C TOTCONF: I*4 number of available configurations
55 C SZX: I*4 display size in x
56 C SZY: I*4 display size in y
57 C DEPTH: I*4 display depth
58 C NLUT: I*4 number of LUTs
59 C NITT: I*4 number of ITTs
60 C NCURS: I*4 number of cursors
61 C IDST: I*4 return status
62 C
63 C--------------------------------------------------
64 C
65 IMPLICIT NONE
66 C
67 INTEGER*4 DISPLAY,TOTCONF,SZX,SZY,DEPTH,
68 + NLUT,NITT,NCURS,IDST
69 C
70 INCLUDE 'MID_INCLUDE:DEANZAH.INC'
71 INCLUDE 'MID_INCLUDE:DEANZAS.INC'
72 INCLUDE 'MID_INCLUDE:IDIDEV.INC'
73 INCLUDE 'MID_INCLUDE:IDIMEM.INC'
74 C
75 C use DZDEV to return some of the required info
76 TOTCONF = 2
77 SZX = QDSZX
78 SZY = QDSZY
79 DEPTH = QDDEP
80 NLUT = 4
81 NITT = 4
82 NCURS = 2
83 C
84 C that's it folks...
85 IDST = 0
86 RETURN
87 END
88
89 SUBROUTINE GD8009(DISPLAY,CONFNO,MEMTYP,TOTMEM,
90 + CONFMODE,MEMID,MEMSZX,MEMSZY,MEMDEP,
91 + ITTDEP,NOMEM,IDST)
92 C
93 C++++++++++++++++++++++++++++++++++++++++++++++++++
94 C
95 C.IDENTIFICATION
96 C subroutine IIDQDC version 1.00 880118
97 C K. Banse ESO - Garching
98 C
99 C.KEYWORDS
100 C DeAnza, configuration
101 C
102 C.PURPOSE
103 C fulfill the requirements as described in the IDI document
104 C
105 C.ALGORITHM
106 C use DeAnza level 0 + 1 software
107 C
108 C.INPUT/OUTPUT
109 C call as IIDQDC(DISPLAY,CONFNO,MEMTYP,TOTMEM,CONFMODE,MEMID,MEMSZX,MEMSZY,
110 C MEMDEP,ITTDEP,NOMEM,IDST)
111 C
112 C input par:
113 C DISPLAY: I*4 display id.
114 C CONFNO: I*4 configuration number, starting with 1
115 C MEMTYP: I*4 type of memory:
116 C = 1 for image, = 2 for alphanumeric,
117 C = 4 for graphics (and bit combinations...)
118 C TOTMEM: I*4 max. no. of memories
119 C
120 C output par:
121 C CONFMODE: I*4 configuration mode
122 C MEMID: I*4 memory id's
123 C MEMSZX: I*4 memory size in x
124 C MEMSZY: I*4 memory size in y
125 C MEMDEP: I*4 memory depth
126 C ITTDEP: I*4 depth of connected ITT's
127 C NOMEM: I*4 number of memories
128 C IDST: I*4 return status
129 C
130 C--------------------------------------------------
131 C
132 IMPLICIT NONE
133 C
134 INTEGER*4 DISPLAY,CONFNO,MEMTYP,TOTMEM
135 INTEGER*4 CONFMODE,MEMID(1),MEMSZX(1),MEMSZY(1),MEMDEP(1)
136 INTEGER*4 ITTDEP(1),NOMEM,IDST
137 INTEGER*4 IAV,N,ICOUNT
138 C
139 INCLUDE 'MID_INCLUDE:DEANZAH.INC'
140 INCLUDE 'MID_INCLUDE:DEANZAS.INC'
141 INCLUDE 'MID_INCLUDE:IDIDEV.INC'
142 INCLUDE 'MID_INCLUDE:IDIMEM.INC'
143 C
144 C
145 NOMEM = 0
146 IDST = 0
147 ICOUNT = QLSTCH + 1
148 IF (ICOUNT.GT.TOTMEM) ICOUNT = TOTMEM
149 C
150 C check input memory
151 IF (TOTMEM.LT.1) THEN
152 IDST = 91
153 RETURN
154 ENDIF
155 C
156 C test memory type
157 IF ( (MEMTYP.GT.2) .AND. (MEMTYP.NE.4) ) RETURN
158 C
159 C for alpahnumerics and overlay memory, CONFNO is irrelevant
160 IF (MEMTYP.EQ.2) THEN
161 NOMEM = 1
162 MEMID(1) = 99
163 MEMSZX(1) = QMSZX
164 MEMSZY(1) = QMSZY
165 MEMDEP(1) = QMDEP
166 ITTDEP(1) = 8
167 RETURN
168 C
169 ELSE IF (MEMTYP.EQ.4) THEN
170 IF (QOVCH.LT.0) RETURN !no graphics channel...
171 NOMEM = 1
172 MEMID(1) = QOVCH
173 MEMSZX(1) = QMSZX
174 MEMSZY(1) = QMSZY
175 MEMDEP(1) = QMDEP
176 ITTDEP(1) = 8
177 RETURN
178 ENDIF
179 C
180 C test input configuration no.
181 IF (CONFNO.EQ.0) GOTO 1000 !treat monochrome like pseudo-colour
182 IF (CONFNO.EQ.1) GOTO 1000
183 IF (CONFNO.EQ.2) GOTO 2000
184 IF (CONFNO.EQ.-1) THEN
185 IF (QRGBFL.EQ.0) THEN
186 GOTO 1000
187 ELSE
188 GOTO 2000
189 ENDIF
190 ENDIF
191 C
192 IDST = 90
193 RETURN
194 C
195 C here for pseudo-colour mode
196 1000 DO N=0,ICOUNT-1
197 IF (N.NE.QOVCH) THEN
198 NOMEM = NOMEM + 1
199 MEMID(NOMEM) = N
200 IF (NOMEM.EQ.TOTMEM) GOTO 1100
201 ENDIF
202 ENDDO
203 C
204 1100 DO N=1,NOMEM
205 MEMSZX(N) = QMSZX
206 MEMSZY(N) = QMSZY
207 MEMDEP(N) = QMDEP
208 ITTDEP(N) = 8
209 ENDDO
210 RETURN
211 C
212 C here for RGB mode
213 2000 IF (QLSTCH.LE.1) RETURN !not enough memories for RGB mode
214 C
215 NOMEM = 3
216 DO N=1,NOMEM
217 MEMID(N) = N - 1
218 MEMSZX(N) = QMSZX
219 MEMSZY(N) = QMSZY
220 MEMDEP(N) = QMDEP
221 ITTDEP(N) = 8
222 ENDDO
223 RETURN
224 C
225 END
226
227 SUBROUTINE GD8007(DISPLAY,CAPA,OUTSIZ,OUTDAT,TOTAL,IDST)
228 C
229 C++++++++++++++++++++++++++++++++++++++++++++++++++
230 C
231 C.IDENTIFICATION
232 C subroutine IIDQCI version 1.00 880609
233 C K. Banse ESO - Garching
234 C
235 C.KEYWORDS
236 C DeAnza, configuration
237 C
238 C.PURPOSE
239 C fulfill the requirements as described in the IDI document
240 C
241 C.ALGORITHM
242 C use DeAnza level 0 + 1 software
243 C
244 C.INPUT/OUTPUT
245 C call as IIDQCI(DISPLAY,CAPA,OUTSIZ,OUTDAT,TOTAL,IDST)
246 C
247 C input par:
248 C DISPLAY: I*4 display id.
249 C CAPA: I*4 capability no.
250 C OUTSIZ: I*4 size of output array
251 C
252 C output par:
253 C OUTDAT: I*4 array output data
254 C TOTAL: I*4 number of data values returned
255 C IDST: I*4 return status
256 C
257 C--------------------------------------------------
258 C
259 IMPLICIT NONE
260 C
261 INTEGER*4 DISPLAY,CAPA,OUTSIZ,OUTDAT(1),TOTAL,IDST
262 INTEGER*4 KK
263 C
264 INCLUDE 'MID_INCLUDE:DEANZAH.INC'
265 INCLUDE 'MID_INCLUDE:DEANZAS.INC'
266 INCLUDE 'MID_INCLUDE:IDIDEV.INC/NOLIST'
267 INCLUDE 'MID_INCLUDE:IDIMEM.INC/NOLIST'
268 C
269 C init
270 TOTAL = 1
271 IDST = 0
272 KK = CAPA/10
273 GOTO (1000,2000,3000,4000,5000,6000,7000,8000,9000,10000),KK
274 C
275 IF (CAPA.EQ.1) THEN
276 OUTDAT(1) = 1
277 RETURN
278 ELSE
279 GOTO 11011
280 ENDIF
281 C
282 C capability in [10,19]
283 1000 IF (CAPA.EQ.10) THEN
284 OUTDAT(1) = 2
285 C
286 ELSE IF (CAPA.EQ.11) THEN
287 IF (QRGBFL.EQ.0) THEN
288 OUTDAT(1) = 1
289 ELSE
290 OUTDAT(1) = 2
291 ENDIF
292 C
293 ELSE IF (CAPA.EQ.12) THEN
294 OUTDAT(1) = QDSZX
295 OUTDAT(2) = QDSZY
296 TOTAL = 2
297 C
298 ELSE IF (CAPA.EQ.13) THEN
299 OUTDAT(1) = QDDEP
300 C
301 ELSE IF (CAPA.EQ.14) THEN
302 OUTDAT(1) = 8
303 C
304 ELSE IF (CAPA.EQ.15) THEN
305 OUTDAT(1) = 4
306 C
307 ELSE IF (CAPA.EQ.16) THEN
308 OUTDAT(1) = 4
309 C
310 ELSE IF (CAPA.EQ.17) THEN
311 OUTDAT(1) = 1
312 OUTDAT(2) = 8
313 TOTAL = 2
314 C
315 ELSE
316 GOTO 11011
317 ENDIF
318 C
319 RETURN
320 C
321 C capability in [20,29]
322 2000 RETURN
323 C
324 C capability in [30,39]
325 3000 RETURN
326 C
327 C capability in [40,49]
328 4000 IF (CAPA.EQ.40) THEN
329 OUTDAT(1) = 2
330 ENDIF
331 C
332 RETURN
333 C
334 C capability in [50,59]
335 5000 RETURN
336 C
337 C capability in [60,69]
338 6000 RETURN
339 C
340 C capability in [70,79]
341 7000 RETURN
342 C
343 C capability in [80,89]
344 8000 RETURN
345 C
346 C capability in [90,99]
347 9000 RETURN
348 C
349 C capability in [100,109]
350 10000 RETURN
351 C
352 C
353 11011 IDST = 90
354 RETURN
355 END
356
357 SUBROUTINE GD8048(DISPLAY,MEMIDS,XOFFS,YOFFS,SPLIT_FLAG,
358 + SPLX,SPLY,IDST)
359 C
360 C++++++++++++++++++++++++++++++++++++++++++++++++++
361 C
362 C.IDENTIFICATION
363 C subroutine IIDSSS version 1.00 880628
364 C K. Banse ESO - Garching
365 C
366 C.KEYWORDS
367 C ImageDisplay, split screen
368 C
369 C.PURPOSE
370 C fulfill the requirements as described in the IDI document
371 C
372 C.ALGORITHM
373 C use DeAnza level 0 + 1 software
374 C
375 C.INPUT/OUTPUT
376 C call as IIDSSS(DISPLAY,MEMIDS,XOFFS,YOFFS,SPLIT_FLAG,SPLX,SPLY,IDST)
377 C
378 C input par:
379 C DISPLAY: I*4 display id.
380 C MEMIDS: I*4 array memory ids, 4 channels if split_flag = 0
381 C 2 channels if = 1 or 2
382 C 1 channel if = -1
383 C SPLIT_FLAG: I*4 split flag:-1 = clear split screen mode
384 C 0 = full split, 0,1,2,3
385 C 1 = 1,0 or 2,3
386 C 2 = 1,2 or 0,3
387 C XOFFS: I*4 array x-offsets of memory
388 C YOFFS: I*4 array y-offsets of memory
389 C SPLX: I*4 x split address
390 C SPLY: I*4 y split address
391 C
392 C output par:
393 C IDST: I*4 return status
394 C
395 C.VERSIONS
396 C--------------------------------------------------
397 C
398 IMPLICIT NONE
399 C
400 INTEGER*4 DISPLAY,MEMIDS(1),SPLIT_FLAG,XOFFS(1),YOFFS(1)
401 INTEGER*4 SPLX,SPLY,IDST
402 INTEGER*4 MMIDS(4),CHAN,N,M,IOFF,LIMIT
403 C
404 INTEGER*2 UNIT,FCREG,FCLEFT,FCRIGHT
405 INTEGER*2 XSPLIT,YSPLIT,SCR
406 INTEGER*2 RVR,LVR,LMC
407 C
408 CHARACTER*20 FRAME
409 C
410 REAL*4 RINF(6)
411 C
412 INCLUDE 'MID_INCLUDE:IDIDEV.INC'
413 INCLUDE 'MID_INCLUDE:IDIMEM.INC'
414 INCLUDE 'MID_INCLUDE:DEANZAH.INC'
415 INCLUDE 'MID_INCLUDE:DEANZAS.INC'
416 C
417 EXTERNAL RVR,LVR,LMC
418 C
419 C check, if we want to clear split screen mode
420 CALL IP8QW(RVR,UNIT,DZIOSB,,,FCR,16,0,8)
421 XSPLIT = SPLX
422 YSPLIT = SPLY
423 IF (SPLIT_FLAG.LT.0) GOTO 5000 !do that elsewhere...
424 C
425 C *****
426 C
427 C here for "real" split screen" business
428 C
429 C *****
430 C
431 MMIDS(1) = MEMIDS(2)
432 MMIDS(2) = MEMIDS(1)
433 C
434 C set scroll values for all memory channels involved
435 IF (SPLIT_FLAG.EQ.0) THEN
436 LIMIT = 4
437 MMIDS(3) = MEMIDS(3)
438 MMIDS(4) = MEMIDS(4)
439 ELSE
440 LIMIT = 2
441 ENDIF
442 C
443 DO M=1,LIMIT
444 CHAN = MMIDS(M)
445 CALL GETICH(QDSPNO,CHAN,FRAME,RINF,IDST)
446 N = CHAN + 1
447 MEMREG(1,N) = IAND(MEMREG(1,N),"176000) !clear SCROLX
448 SCR = IAND(SCROLX,"001777)
449 MEMREG(1,N) = IOR(MEMREG(1,N),SCR)
450 MEMREG(2,N) = IAND(MEMREG(2,N),"176000) !clear SCROLY
451 SCR = IAND(SCROLY,"001777)
452 MEMREG(2,N) = IOR(MEMREG(2,N),SCR)
453 CALL IP8QW(LMC,UNIT,DZIOSB,,,MEMREG(1,N),4,CHAN,0)
454 ENDDO
455 C
456 C now set up split screen (depends on mode)
457 IF (QRGBFL.EQ.1) THEN !LUT = NULL.LUT !!
458 FCR(1) = "000020 !0 R, 1 R 0 = use LUT
459 FCR(2) = "010401 !1 G, 0 G 1 = bypass LUT
460 FCR(3) = "001002 !0 B, 0 B
461 FCR(4) = "000000 !0 x, 0 x
462 FCR(5) = IAND(FCR(5),"177400) !xxx, 0 R
463 FCREG = IAND(FCR(6),"177400) !clear right byte
464 FCR(6) = IOR(FCREG,"1) !xxx, 0 G
465 FCREG = IAND(FCR(7),"177400) !clear right byte
466 FCR(7) = IOR(FCREG,"23) !xxx, 1 B
467 FCREG = IAND(FCR(8),"177400) !clear right byte
468 FCR(8) = IOR(FCREG,"20) !xxx, 0 x
469 ELSE
470 FCR(1) = IAND(FCR(1),"170160) !
471 FCREG = IAND(FCR(2),"170160) !clear out channels
472 FCR(2) = IOR(FCREG,"401) !channel 1 -> segment 1, G + R
473 FCREG = IAND(FCR(3),"170160) !clear out channels
474 FCR(3) = IOR(FCREG,"1002) !channel 2 -> segment 2, G + R
475 FCREG = IAND(FCR(4),"170160) !clear out channels
476 FCR(4) = IOR(FCREG,"1403) !channel 3 -> segment 3, G + R
477 FCR(5) = IAND(FCR(5),"177600) !channel 0 -> segment 0, B
478 FCREG = IAND(FCR(6),"177600) !clear out right channel
479 FCR(6) = IOR(FCREG,"1) !channel 1 -> segment 1, B
480 FCREG = IAND(FCR(7),"177600) !clear out right channel
481 FCR(7) = IOR(FCREG,"2) !channel 2 -> segment 2, B
482 FCREG = IAND(FCR(8),"177600) !clear out right channel
483 FCR(8) = IOR(FCREG,"3) !channel 3 -> segment 3, B
484 ENDIF
485 C
486 C jump to common end
487 GOTO 8000
488 C *****
489 C
490 C here for clear split screen business
491 C
492 C *****
493 5000 MMIDS(1) = MEMIDS(1)
494 C
495 C loop through FCRs + reset scroll values for all memory channels involved
496 DO M=1,8
497 FCLEFT = ISHFT(FCR(M),-8) !get left byte
498 C
499 CHAN = IAND(FCR(M),"17) !pull out channel from right byte
500 CALL GETICH(QDSPNO,CHAN,FRAME,RINF,IDST)
501 N = CHAN + 1
502 MEMREG(1,N) = IAND(MEMREG(1,N),"176000) !clear SCROLX
503 SCR = IAND(SCROLX,"001777)
504 MEMREG(1,N) = IOR(MEMREG(1,N),SCR)
505 MEMREG(2,N) = IAND(MEMREG(2,N),"176000) !clear SCROLX
506 SCR = IAND(SCROLY,"001777)
507 MEMREG(2,N) = IOR(MEMREG(2,N),SCR)
508 CALL IP8QW(LMC,UNIT,DZIOSB,,,MEMREG(1,N),4,CHAN,0)
509 C
510 IF (IAND(FCLEFT,"17).NE.CHAN) THEN
511 CHAN = IAND(FCLEFT,"17) !pull out channel
512 CALL GETICH(QDSPNO,CHAN,FRAME,RINF,IDST)
513 N = CHAN + 1
514 MEMREG(1,N) = IAND(MEMREG(1,N),"176000) !clear SCROLX
515 SCR = IAND(SCROLX,"001777)
516 MEMREG(1,N) = IOR(MEMREG(1,N),SCR)
517 MEMREG(2,N) = IAND(MEMREG(2,N),"176000) !clear SCROLY
518 SCR = IAND(SCROLY,"001777)
519 MEMREG(2,N) = IOR(MEMREG(2,N),SCR)
520 CALL IP8QW(LMC,UNIT,DZIOSB,,,MEMREG(1,N),4,CHAN,0)
521 ENDIF
522 ENDDO
523 C
524 C now set up single display (depends on mode)
525 IF (QRGBFL.EQ.1) THEN
526 DO M=1,4
527 FCR(M) = "010420 !channel 1, 0 (green, red)
528 FCREG = IAND(FCR(M+4),"177740) !clear out BY bit + channel
529 FCR(M+4) = IOR(FCREG,"22) !channel 2 (blue)
530 ENDDO
531 ELSE
532 DO M=1,4
533 FCR(M) = MMIDS(1) !channel MMIDS(1) everywhere...
534 FCR(M+4) = IAND(FCR(M+4),"177740)
535 FCR(M+4) = IOR(FCR(M+4),MMIDS(1))
536 ENDDO
537 ENDIF
538 C *****
539 C
540 C common terminating section
541 C
542 C *****
543 C
544 C rewrite FCRs
545 8000 CALL IP8QW(LVR,UNIT,DZIOSB,,,FCR,16,0,8)
546 C
547 C update split addresses
548 VOCREG(1) = XSPLIT
549 VOCREG(2) = YSPLIT
550 CALL IP8QW(LVR,UNIT,DZIOSB,,,VOCREG(1),4,0,0)
551 C
552 IDST = 0
553 RETURN
554 END
555
556 SUBROUTINE GD8005(ERNO,ERSTR,LSTR)
557 C
558 C++++++++++++++++++++++++++++++++++++++++++++++++++
559 C
560 C.IDENTIFICATION
561 C subroutine IIDERR version 1.00 880502
562 C K. Banse ESO - Garching
563 C
564 C.KEYWORDS
565 C Error message
566 C
567 C.PURPOSE
568 C fulfill the requirements as described in the IDI document
569 C
570 C.ALGORITHM
571 C
572 C.INPUT/OUTPUT
573 C call as IIDERR(ERNO,ERSTR,LSTR)
574 C
575 C input par:
576 C ERNO: I*4 error no.
577 C
578 C output par:
579 C ERSTR: char. string error message
580 C LSTR: I*4 lenght of error message
581 C
582 C--------------------------------------------------
583 C
584 IMPLICIT NONE
585 C
586 INTEGER*4 ERNO,LSTR
587 INTEGER*4 KSTR
588 C
589 CHARACTER*(*) ERSTR
590 C
591 ERSTR = ' '
592 LSTR = LEN(ERSTR)
593 KSTR = LSTR
594 C
595 C error numbers are sorted according to originating routines
596 IF (ERNO.GT.199) GOTO 200
597 C
598 C here for errors from the IIC... routines
599 RETURN
600 C
601 200 IF (ERNO.GT.299) GOTO 300
602 C
603 C here for errors from the IID... routines
604 RETURN
605 C
606 300 IF (ERNO.GT.399) GOTO 400
607 C
608 C here for errors from the IID... routines
609 RETURN
610 C
611 400 IF (ERNO.GT.499) GOTO 500
612 C
613 C here for errors from the III... routines
614 IF (ERNO.EQ.401) THEN
615 ERSTR(1:) = 'Unsupported interactor type '
616 KSTR = 31
617 ELSE IF (ERNO.EQ.402) THEN
618 ERSTR(1:) = 'Trigger no. out of range, should be in [0,9] '
619 KSTR = 45
620 ELSE IF (ERNO.EQ.403) THEN
621 ERSTR(1:) = 'Unsupported object type '
622 KSTR = 28
623 ELSE IF (ERNO.EQ.404) THEN
624 ERSTR(1:) = 'No description for given interactor '
625 KSTR = 40
626 ELSE IF (ERNO.EQ.409) THEN
627 ERSTR(1:) = 'No interaction enabled '
628 KSTR = 27
629 ENDIF
630 GOTO 9000
631 C
632 500 IF (ERNO.GT.599) GOTO 600
633 C
634 C here for errors from the IIG... routines
635 RETURN
636 C
637 600 IF (ERNO.GT.699) GOTO 700
638 C
639 C here for errors from the IIL... routines
640 RETURN
641 C
642 700 IF (ERNO.GT.799) GOTO 800
643 C
644 C here for errors from the IIM... routines
645 RETURN
646 C
647 800 IF (ERNO.GT.899) GOTO 900
648 C
649 C here for errors from the IIR... routines
650 RETURN
651 C
652 C here for errors from the IIZ... routines
653 900 RETURN
654 C
655 9000 IF (KSTR.LT.LSTR) LSTR = KSTR
656 RETURN
657 C
658 END