home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
vester_e.zip
/
MAPSKED.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-08-08
|
5KB
|
102 lines
10 CLEAR,32768!:KEY OFF:CLS:H=0:H1=0:H2=0:H3=0:H4=0:M=0:M1=0:M2=0:M3=0:M4=0
15 GOTO 1020
20 B=0:B1=0:B2=0:B3=0:B4=0:P=0:P1=0:P2=0:P3=0:P4=0:F5$="f"
30 PRINT" K3BC WEATHERFAX for IBM and CLONES":PRINT
40 PRINT" Scheduled storage of high resolution MAPS on Disk. Has a limit of 5 "
50 PRINT" maps. Use SEEMAP after storage to view and Print these at a"
60 PRINT" later time. Copy time for all pictures is set to same minutes. They"
70 PRINT" are stored in sequence scheduled. Normal procedure is to set schedule"
80 PRINT" time a little early and SYNC so storage only begins after a SYNC se-"
90 PRINT" quence is received. If maps are in adjacent time slots, you may want"
100 PRINT" to not do this but use NO SYNC to avoid possible hangup if SYNC se-"
110 PRINT" quence doesn't appear on first map of the adjacent slots."
120 PRINT:PRINT" Program is user configured for a particular computer by filling in your"
130 PRINT" SYSTEM CONFIGURATION. LOAD this BASIC program and then LIST 1000-2000"
140 PRINT" to see the CONFIGURATION. The COM port, video card, and screen type "
150 PRINT" are selected. The line timing should be very close, but if map is"
160 PRINT" slanted, iteratively change LT as noted and rerun a map copy. After"
170 PRINT" you are satisfied, SAVE the program with the final values inserted;"
180 PRINT" ie,type F3 (brings up SAVE ') and then WXMAP and hit ENTER."
240 IF VC=1 THEN P$="easicgab.asm"
245 IF VC=2 THEN P$="easivgab.asm"
250 IF VC=3 THEN P$="easiattb.asm"
350 PRINT:PRINT:INPUT" Minutes of copy time per MAP (Default=14 min;max=28 min)";T
360 IF T=0 THEN T=14
370 D%=120*T:IF D%>3735 THEN D%=3735
400 PRINT:PRINT:PRINT:PRINT" Now to make your SCHEDULE---------"
410 PRINT:INPUT" What HOUR for the first map";H
420 INPUT" and MINUTES after the hour";M
430 INPUT" Do you want AUTO-SYNCHRONIZING (Y or N)";S$
440 IF S$="y" THEN B=256
450 INPUT" What path/file name ";F$
460 INPUT" Do you want to schedule another map or pix (Y or N)";N$
470 IF N$="n" THEN F1$="f":IF N$="n" THEN GOTO 740
480 INPUT" What HOUR for the next map";H1
490 INPUT" and MINUTES after the hour";M1
500 INPUT" Do you want AUTO-SYNCHRONIZING (Y or N)";S$
510 IF S$="y" THEN B1=256
520 INPUT" What path/file name ";F1$
530 INPUT" Do you want to schedule another map or pix (Y or N)";N$
540 IF N$="n" THEN F2$="f":IF N$="n" THEN GOTO 740
550 INPUT" What HOUR for the next map";H2
560 INPUT" and MINUTES after the hour";M2
570 INPUT" Do you want AUTO-SYNCHRONIZING (Y or N)";S$
580 IF S$="y" THEN B2=256
590 INPUT" What path/file name ";F2$
600 INPUT" Do you want to schedule another map or pix (Y or N)";N$
610 IF N$="n" THEN F3$="f":IF N$="n" THEN GOTO 740
620 INPUT" What HOUR for the next map";H3
630 INPUT" and MINUTES after the hour";M3
640 INPUT" Do you want AUTO-SYNCHRONIZING (Y or N)";S$
650 IF S$="y" THEN B3=256
660 INPUT" What path/file name ";F3$
670 INPUT" Do you want to schedule another map or pix (Y or N)";N$
680 IF N$="n" THEN F4$="f":IF N$="n" THEN GOTO 740
690 INPUT" What HOUR for the next map";H4
700 INPUT" and MINUTES after the hour";M4
710 INPUT" Do you want AUTO-SYNCHRONIZING (Y or N)";S$
720 IF S$="y" THEN B4=256
730 INPUT" What path/file name ";F4$
740 INPUT" RECHECK your schedule for correctness. Is it OK (Y or N)";R$
750 IF R$="" GOTO 740
760 IF R$="n" GOTO 10
770 IF R$="y" GOTO 780
780 B%=H:A%=M*256:C%=1+B
790 DEF SEG=&H4500
800 BLOAD P$,&H100:POKE &H2D0,60 'Poke returns P$ to BASIC at map end so can SAVE
803 IF CO=1 THEN GOTO 805
804 POKE &H1E2,2:POKE &H1D6,2:POKE &H57C,2:POKE &H5D5,2
805 IF V=2 THEN GOTO 807
806 POKE &H22A,245:POKE &H408,138:GOTO 810
807 POKE &H22A,144:POKE &H408,97:GOTO 810
810 LTB=INT(LT/256):LTA=LT-256*LTB:POKE &H614,LTA:POKE &H615,LTB:POKE &H175,GT:POKE &H633,SW
811 IF TT=0 THEN POKE &H1CF,1
820 'reserved for possible pokes
830 PRINT:PRINT:PRINT:PRINT" PROGRAM BEING EXECUTED. SEE YOU LATER TODAY FOR MAP VIEWING!"
840 K=&H100:CALL K(A%,B%,C%,D%)
850 E%=INT((D%+20)/34.1)+1
860 IF VC=1 THEN A$=F$+".cga"
870 IF VC=2 THEN A$=F$+".vga"
880 IF VC=3 THEN A$=F$+".att"
890 DEF SEG=&H4500
900 BLOAD "saveb.asm",&H100
910 K=&H100:CALL K(E%,A$)
920 DEF SEG=&H4500
930 H=H1:H1=H2:H2=H3:H3=H4:M=M1:M1=M2:M2=M3:M3=M4:B=B1:B1=B2:B2=B3:B3=B4:P=P1
940 P1=P2:P2=P3:P3=P4:F$=F1$:F1$=F2$:F2$=F3$:F3$=F4$:F4$=F5$
950 IF F$="f" GOTO 970
960 GOTO 780
970 PRINT" YOUR SCHEDULED MAP STORAGE IS COMPLETED. Use SEEMAP to view maps."
980 END
1000 ' SYSTEM CONFIGURATION
1010 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1020 CO=1 'CO=1 for COM1----CO=2 for COM2
1030 LT=13460 'Line Timing. If Pix top leans left, increase LT & vice versa
1040 VC=1 'Video Card--1=CGA(640x200) 2=VGA(640x480) 3=AT&T(640x400)
1050 V=2 'Type of screen---1=CRT(desktop) 2=LCD(laptop)
1060 GT=217 'Gross Timer-Controls SYNC lock-may need to be lower for slower
1070 'computers.Too high gives SYNC breaks,too low gives map missing.
1080 TT=1 'Tone-Tick audio cue--TT=0 is OFF---TT=1 is ON
1090 SW=30 'SYNC capture window (microsec). Larger for slower machines
2010 GOTO 20