Home » CEEFAX disks » telesoftware14.adl » 24-02-89/ArcDisp » Compare

Compare 24-02-89/ArcDisp with 12-03-89/ArcOver

File: CEEFAX disks » telesoftware14.adl » 24-02-89/ArcDisp
Compared with: CEEFAX disks » telesoftware14.adl » 12-03-89/ArcOver
Similarity: 71% of bytes duplicated

90 of 141 lines (68.7%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

24-02-89/ArcDisp 12-03-89/ArcOver
10REM > ArcDisplay Weather Satellite image display program for Archimedes 10REM > ArcDisOver (C) BBC tv and Peter Vince 7/3/89
20REM (C) BBC tv and Peter Vince 22/2/89 20REM Weather Satellite image display and overlay program for Archimedes
30 30
40REM Ensure there is room on disc for final image 40REM Ensure there is room on disc for final image
50*CREATE"a" A0B8 50*CREATE"a" A0B8
60*DELETE"a" 60*DELETE"a"
70 70
80ON ERROR ON ERROR OFF:PRINTTAB(0,28);:REPORT:GOTO670 80ON ERROR ON ERROR OFF:PRINTTAB(0,28);:REPORT:GOTO580
90DIM Z% 360 90DIM Z% 360
100 100
110MODE 14 110MODE 14
120*CAT 120*CAT
130INPUT'"Enter name of file to be drawn ";infyl$ 130INPUT'"Enter name of file to be drawn ";infyl$
140S%=OPENINinfyl$ 140S%=OPENINinfyl$
150IF S%=0 THEN PRINT"Data file """;infyl$;""" not found.";CHR$7:END 150IF S%=0 THEN PRINT"Data file """;infyl$;""" not found.";CHR$7:END
160 160
170PTR#S%=2 170PTR#S%=2
180IF BGET#S%<3 OR BGET#S%-&84 OR BGET#S%-16 THEN format=FALSE ELSE format=TRUE 180IF BGET#S%<3 OR BGET#S%-&84 OR BGET#S%-16 THEN format=FALSE ELSE format=TRUE
190width=BGET#S% + BGET#S%*256 190width=BGET#S% + BGET#S%*256
200height=BGET#S% + BGET#S%*256 200height=BGET#S% + BGET#S%*256
210IF (width=276 AND height=200) OR (width=320 AND height=256) OR (width=360 AND height=288) THEN size=TRUE ELSE size=FALSE 210IF (width=276 AND height=200) OR (width=320 AND height=256) OR (width=360 AND height=288) THEN size=TRUE ELSE size=FALSE
220PTR#S%=17 220PTR#S%=17
230IF format=FALSE OR size=FALSE OR (BGET#S%AND7)-3 THEN PRINT'"Data using incompatible format -"'"cannot decode."';CHR$7:CLOSE#S%:END 230IF format=FALSE OR size=FALSE OR (BGET#S%AND7)-3 THEN PRINT'"Data using incompatible format -"'"cannot decode."';CHR$7:CLOSE#S%:END
240 240
250message%=BGET#S% 250message%=BGET#S%
260IF message% AND 1 THEN ident$=FNgetstring ELSE GOTO290 260IF message% AND 1 THEN ident$=FNgetstring ELSE GOTO290
270IF message% AND 16 THEN PRINT'new$ 270IF message% AND 16 THEN PRINT'new$
280 280
290creditflag%=BGET#S% 290creditflag%=BGET#S%
300IF creditflag% AND 1 THEN credit$=FNgetstring ELSE credit$="" : GOTO330 300IF creditflag% AND 1 THEN credit$=FNgetstring ELSE credit$="" : GOTO330
310IF creditflag% AND 16 THEN PRINT'new$ 310IF creditflag% AND 16 THEN PRINT'new$
320 320
330IF ((message% OR creditflag%) AND 16) = 0 THEN 370 330IF ((message% OR creditflag%) AND 16) = 0 THEN 370
340PRINT'"Press the Space-Bar to continue..."; 340PRINT'"Press the Space-Bar to continue...";
350REPEAT UNTIL GET=32 350REPEAT UNTIL GET=32
360 360
370MODE9 370MODE9
380VDU23,1,0;0;0;0; 380VDU23,1,0;0;0;0;
390
400REM Define colours for 'grey scale'
410FOR I%=0 TO 15
420C%=I%*16
430COLOUR I%,C%,C%,C%
440NEXT
450COLOUR 12
460
470COLOUR 132:CLS 390COLOUR 132:CLS
480IF (width=276 AND height=200) THEN window=TRUE ELSE window=FALSE : GOTO510 400IF (width=276 AND height=200) THEN window=TRUE ELSE window=FALSE : GOTO430
490VDU 24,72;96;1207;927; :GCOL0,134:CLG 410VDU 24,72;96;1207;927; :GCOL0,140:CLG
500VDU 24,88;112;1191;911;:GCOL0,132:CLG:VDU26 420VDU 24,88;112;1191;911;:GCOL0,132:CLG:VDU26
510PROCcaptions 430PROCheader
520PTR#S%=0 : PTR#S% = BGET#S% + BGET#S%*256 440PTR#S%=0 : PTR#S% = BGET#S% + BGET#S%*256
530 450
540FOR V% = (0-window*112) TO (1020+window*112) STEP 4 460FOR V% = (0-window*112) TO (1020+window*112) STEP 4
550MOVE (1280+window*88),V% 470MOVE (1280+window*88),V%
560PROCfill 480PROCfill
570FOR I%=P% TO (360+window*80):Z%?I%=C%:NEXT 490FOR I%=P% TO (360+window*80):Z%?I%=C%:NEXT
580FOR P%=0 TO (319+window*44) 500IF overlay THEN PROClinemap : GOTO 520
590GCOL0,Z%?P% 510IF L% THEN PROClineover ELSE PROClinegrey
600PLOT65,-4,0
610NEXT 520NEXT
620NEXT
630 530
640OSCLI("SCREENSAVE "+outfyl$) 540OSCLI("SCREENSAVE "+outfyl$)
650PRINTTAB(1,30)" Saved as ";outfyl$;" " 550COLOUR 12
560PRINTTAB(1,30)" Saved as ";outfyl$;TAB(39);
660IF window THEN PRINTTAB(39); 570IF window THEN PRINTTAB(39);
670VDU23,1,1;0;0;0; 31,0,31 580VDU23,1,1;0;0;0; 31,0,31
680CLOSE#0 590CLOSE#0
690END 600END
700 610
620DEFPROClinemap
630FOR P%=0 TO (319+window*44)
640C%=Z%?P%
650GCOL0,C%DIV8+(C%AND4)*2
660PLOT65,-4,0
670NEXT
680ENDPROC
690
700DEFPROClineover
710FOR P%=0 TO (319+window*44)
720C%=Z%?P%
730IF C%<2 THEN PLOT64,-4,0 ELSE GCOL0,C% : PLOT65,-4,0
740NEXT
750ENDPROC
760
770DEFPROClinegrey
780FOR P%=0 TO (319+window*44)
790GCOL0,Z%?P%
800PLOT65,-4,0
810NEXT
820ENDPROC
830
710DEFPROCfill 840DEFPROCfill
720B%=&FF:P%=0 850B%=&FF:P%=0
730REPEAT 860REPEAT
740O%=B% 870O%=B%
750B%=BGET#S% 880B%=BGET#S%
760C%=B%AND15 890C%=B%AND15
770W%=B%DIV16 900W%=B%DIV16
780IF C%=O% THEN UNTIL TRUE : ENDPROC 910IF C%=O% THEN UNTIL TRUE : ENDPROC
790IF W%=15 THEN W%=BGET#S%+15 : IF W%=270 THEN W%=BGET#S%+270 920IF W%=15 THEN W%=BGET#S%+15 : IF W%=270 THEN W%=BGET#S%+270
800FOR P%=P% TO P%+W% : Z%?P%=C% : NEXT 930FOR P%=P% TO P%+W% : Z%?P%=C% : NEXT
810UNTIL FALSE 940UNTIL FALSE
820 950
830DEFPROCcaptions 960DEFPROCheader
840GCOL0,12:GCOL0,132 970GCOL0,12:GCOL0,132
850source$=FNgetstring 980source$=FNgetstring
860rad%=BGET#S% 990rad%=BGET#S%
870date$=FNgetstring 1000date$=FNgetstring
880time$=FNgetstring 1010time$=FNgetstring
1020jd$=FNgetstring
1030B%=BGET#S% : area=B% AND &7F : overlay=B% AND &80
890 1040
900IF (message%AND12)=0 THEN 1000 1050IF jd$="" THEN outfyl$="NODATE" ELSE outfyl$=LEFT$(jd$,7)+MID$(jd$,9,2)
1060IF area>0 AND area<5 THEN prefix$=MID$("waeb",area,1) ELSE prefix$="?"
1070outfyl$=prefix$+outfyl$
1080
1090IF overlay THEN outfyl$="LandMas"+LEFT$(infyl$,3) : L%=0 : GOTO 1140
1100
1110L%=OPENIN("LandMas"+MID$(infyl$,4,3))
1120IF L% THEN CLOSE#L% : OSCLI("SCREENLOAD LandMas"+MID$(infyl$,4,3)) : IF window THEN COLOUR 132 : PRINTTAB(0,30);SPC(40);
1130
1140IF (message%AND12)=0 THEN 1240
910IF (message%AND3)<>3 THEN title$=source$ ELSE title$=ident$ 1150IF (message%AND3)<>3 THEN title$=source$ ELSE title$=ident$
920IF message%AND2 THEN 970 1160IF message%AND2 THEN 1210
930 1170
940IF rad%>0 AND rad%<5 THEN title$=title$+" "+MID$(" IRVZWVRD",rad%*2,2) 1180IF rad%>0 AND rad%<5 THEN title$=title$+" "+MID$(" IRVZWVRD",rad%*2,2)
950IF date$<>"" THEN title$=title$+" "+LEFT$(date$,2)+"/"+MID$(date$,3,2)+"/"+MID$(date$,5) 1190IF date$<>"" THEN title$=title$+" "+LEFT$(date$,2)+"/"+MID$(date$,3,2)+"/"+MID$(date$,5)
960IF time$<>"" THEN title$=title$+" "+LEFT$(time$,2)+":"+MID$(time$,3) 1200IF time$<>"" THEN title$=title$+" "+LEFT$(time$,2)+":"+MID$(time$,3)
970MOVE 640-LEN(title$)*16,924+window*864 1210MOVE 640-LEN(title$)*16,924+window*864
980VDU 5 : PRINT title$ 1220VDU 5 : PRINT title$
990 1230
1000IF credit$="" OR (creditflag%AND7)<>7 THEN 1040 1240IF credit$="" OR (creditflag%AND7)<>7 THEN 1280
1010MOVE 640-LEN(credit$)*16,988 1250MOVE 640-LEN(credit$)*16,988
1020VDU 5 : PRINT credit$ 1260VDU 5 : PRINT credit$
1030 1270
1040jd$=FNgetstring 1280PTR#S%=PTR#S%+33 : REM Skip projection, mapping, and source grey scale
1050IF jd$="" THEN outfyl$="NODATE" : GOTO1080 1290IF L% THEN PTR#S%=PTR#S%+6 : FOR I%=2 TO 15 : ELSE FOR I%=0 TO 15
1060outfyl$=LEFT$(jd$,7)+MID$(jd$,9,2) 1300COLOUR I%,BGET#S%,BGET#S%,BGET#S%
1070 1310NEXT
1080area=BGET#S% AND &7F
1090IF area>0 AND area<5 THEN prefix$=MID$("waeb",area,1) ELSE prefix$="?"
1100outfyl$=prefix$+outfyl$
1110
1120VDU 4, 23,1,0;0;0;0; 1320VDU 4, 23,1,0;0;0;0;
1130ENDPROC 1330ENDPROC
1140 1340
1150DEFFNgetstring 1350DEFFNgetstring
1160new$="" 1360new$=""
1170REPEAT 1370REPEAT
1180C%=BGET#S% 1380C%=BGET#S%
1190IF C% THEN new$=new$+CHR$C% 1390IF C% THEN new$=new$+CHR$C%
1200UNTIL C%=0 1400UNTIL C%=0
1210=new$ 1410=new$