home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
vester_e.zip
/
SLIDESHO.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-08-08
|
10KB
|
208 lines
10 CLEAR,32768!:KEY OFF:CLS
11 X$="system"+CHR$(13):KEY 10,X$
12 X$="files":KEY 9,X$
15 GOTO 2000
20 DEF SEG=&H4F00
30 BLOAD "c:\dos\64sho.asm",&H100
31 D=INT(18.2*DL):DB=INT(D/256):DA=D-256*DB
32 POKE &H4A9,DA:POKE &H4AA,DB
40 PRINT:PRINT:PRINT:PRINT:PRINT:PRINT" SLIDE-SHOW VIEWING SSTV PIX'S "
50 PRINT:PRINT:PRINT" This program is for viewing SSTV pictures in sequence that were captured"
60 PRINT"with the K3BC SSTV program and reduced to a picture file stored in floppies,"
70 PRINT"or on a RAMDISK or on the main Hard-disk as a full color picture file with"
80 PRINT"a MODE suffix attached. Pick MODE for the pix's you want to view and then"
90 PRINT"add any file name constraint (for example, pick Mode 3 and name constraint BE;"
100 PRINT"program views all files named BE*.S1). All keyboard commands (scroll,etc.) are"
110 PRINT"the same as the single pix viewing program, except N(ext) is added to sequence"
120 PRINT"to the next file in the directory. Or if you prefer, hit A for A(utomatic)"
121 PRINT"and the files will be presented for viewing in an automatic sequence. The"
122 PRINT"time delay between slides, DL, can be set in the SYSTEM CONFIGURATION in line"
128 PRINT"2050. Single pix in these modes can be viewed with this program by giving "
129 PRINT"the full Filename as constraint . Q(uit) returns to BASIC and then key F10"
130 PRINT"followed by ENTER to return to DOS, or F2 to view other pix's."
131 PRINT" When viewing pix captured in the Automatic/Save mode, you can also scroll"
132 PRINT"any picture you want to save, hit Q to exit the screen, and follow the in-"
133 PRINT"structions to save the pix in either regular format or compressed formats."
150 PRINT:PRINT:PRINT" What MODE used for Pix: (3)Scottie 1 (4)Scottie 2"
160 INPUT"(5)AVT90 (6)AVT94 (7)Martin1 (77)Martin2 (8)Wraase96 (9)Fax480 ";I
165 IF I=0 THEN GOTO 150
170 PRINT:PRINT:INPUT" What File Name Constraints (default=none)";A$
185 IF I=2 THEN A$=A$+"*.72"
186 IF I=22 THEN A$=A$+"*.72a"
187 IF I=1 THEN A$=A$+"*.36"
188 IF I=11 THEN A$=A$+"*.36a"
190 IF I=3 THEN A$=A$+"*.s1"
191 IF I=8 THEN A$=A$+"*.96"
192 IF I=9 THEN A$=A$+"*.fax"
193 IF I=99 THEN A$=A$+"*.wx"
200 IF I=4 THEN A$=A$+"*.s2"
210 IF I=5 THEN A$=A$+"*.90"
220 IF I=6 THEN A$=A$+"*.94"
230 IF I=7 THEN A$=A$+"*.m1"
232 IF I=77 THEN A$=A$+"*.m2"
235 IF I=2 THEN GOTO 800
236 IF I=22 THEN GOTO 800
237 IF I=1 THEN GOTO 1100
238 IF I=11 THEN GOTO 1100
240 IF I=3 THEN L=288
250 IF I=4 THEN L=184
260 IF I=5 THEN L=256
270 IF I=6 THEN L=320
280 IF I=7 THEN GOTO 740
282 IF I=77 THEN GOTO 740
285 IF I=8 THEN L=248
290 IF I=99 THEN GOTO 950
600 GOTO 602
602 POKE &H226,2 'No. poked here=pixels scrolled per left arrow depression
605 POKE &H427,PT
607 IF I=9 THEN GOTO 900
610 P=L-PT:P2=INT(P/256):P1=P-P2*256
620 POKE &H15D,P1:POKE &H15E,P2:POKE &H46B,P1:POKE &H46C,P2
630 IF I=4 THEN POKE &H3EA,16:LL=568
635 IF I=5 THEN POKE &H3EA,0:LL=768
640 IF I=7 THEN POKE &H3EA,9:LL=915
641 IF I=77 THEN POKE &H3EA,8:LL=464
642 IF I=8 THEN POKE &H3EA,1:LL=745
645 IF I=6 THEN POKE &H3EA,0:LL=960
650 IF I=3 THEN POKE &H3EA,14:LL=878
651 IF EX=0 THEN GOTO 659
652 'next two lines expand S2 and M2 modes by 2 horizontally
653 IF I=4 THEN P=320:POKE &H43B,235:POKE &H43C,43:POKE &H15A,0:POKE &H15B,2
654 IF I=77 THEN P=2*P:POKE &H43B,235:POKE &H43C,43:POKE &H15A,0:POKE &H15B,2
659 OF=(640-2*P)/2:OF2=INT(OF/256):OF1=OF-256*OF2:POKE &H13B,OF1:POKE &H13C,OF2
660 LL2=INT(LL/256):LL1=LL-256*LL2:POKE &H1FD,LL1:POKE &H1FE,LL2:POKE &H242,LL1:POKE &H243,LL2
670 IF V=1 THEN GOTO 683
680 VC=0:PRINT:PRINT:PRINT" Is Video Card (1)Trident mode 5D (2)Tseng mode 2E (3)ATI mode 62"
681 INPUT"(4)Paradise 5F (5)Chips&Tech mode 79 (6)Genoa mode 5C (7)VESA (Default=1)";VC
682 IF VC=0 THEN VC=1 'default choice
683 IF VC=1 THEN GOTO 1590
684 IF VC=2 THEN GOTO 710
685 IF VC=3 THEN GOTO 1600
686 IF VC=4 THEN GOTO 1650
690 IF VC=5 THEN GOTO 1700
695 IF VC=7 THEN GOTO 1800
700 IF VC=6 THEN GOTO 1750
701 GOTO 680
710 POKE &H113,46:POKE &H142,205:POKE &H144,136:POKE &H145,216:POKE &H146,238:POKE &H147,195
720 K=&H100:CALL K(S%,A$)
725 GOTO 1250
730 KEY ON:PRINT" Hit F2 to Re-run program. Hit F10 and ENTER to goto DOS.":END
740 POKE &H180,128:POKE &H3DA,128:POKE &H3CB,64:POKE &H3BC,192
745 IF I=77 THEN L=152:GOTO 600
750 L=302:GOTO 600
800 L=282
801 BLOAD "vuroboh.asm",&H100
802 PRINT:PRINT:INPUT" What white level count do you select (Default=138)";W
803 IF W=0 THEN W=138
810 POKE &H17D,W:POKE &H181,W:POKE &H183,W
820 POKE &H337,1:POKE &H2D7,1 'No. poked is increment for fine tune with F&G
850 OF=(640-2*L)/2:OF2=INT(OF/256):OF1=OF-256*OF2:POKE &H13B,OF1:POKE &H13C,OF2
860 POKE &H226,2:POKE &H1FD,103:POKE &H1FE,2:POKE &H242,103:POKE &H243,2
861 IF I=2 THEN GOTO 870
862 POKE &H1FD,85:POKE &H242,85:POKE &H44D,85:POKE &H452,85
870 GOTO 680
900 POKE &H15D,24:POKE &H15E,2:POKE &H184,235:POKE &H185,1:POKE &H180,0:POKE &H3A8,235:POKE &H3A9,57
910 POKE &H3EA,10:POKE &H3A2,224:POKE &H3A3,1:POKE &H13B,52:POKE &H13C,0:POKE &H16A,128:POKE &H16B,2
920 LL=546:L=179:GOTO 660
950 PRINT:PRINT:PRINT:INPUT" Do you choose (1)1024x768 or (2)640x480 (Default=1)";S
960 IF S=0 THEN S=1
970 BLOAD "vuwx.asm",&H100
980 IF S=2 THEN POKE &H16A,128:POKE &H16B,2:POKE &H155,224:POKE &H156,1:POKE &H113,93
985 POKE &H170,W:POKE &H174,W:POKE &H176,W
990 GOTO 680
1100 BLOAD "vuro36b.asm",&H100
1110 LL=308:POKE &H13B,140:POKE &H3D3,26:POKE &H226,2
1120 IF I=11 THEN LL=288:POKE &H3D3,6
1130 GOTO 660
1250 PRINT:PRINT:INPUT" Do you want to save last picture-y or n (Default=n)";P$
1251 IF P$="" THEN P$="n"
1252 IF P$="n" THEN GOTO 730
1253 IF P$="y" THEN GOTO 1255
1254 GOTO 1250
1255 FOR Y=&HB1E TO &HB2A
1256 A=PEEK(Y)
1257 IF A=0 THEN GOTO 1260
1258 A$=CHR$(A)
1259 OF$=OF$+A$:NEXT Y
1260 PRINT:PRINT:PRINT OF$:PRINT:PRINT:INPUT" Save it in compressed format--y or n (Default=n)";F$
1261 IF F$="" THEN F$="n"
1262 IF F$="n" THEN GOTO 1270
1263 IF F$="y" THEN GOTO 1270
1264 GOTO 1260
1270 DEF SEG=&H4F00
1280 BLOAD "c:\dos\savepix.asm",&H100
1300 PI=512:PO=512:K%=0:L%=0
1310 POKE &H192,LL1:POKE &H193,LL2:POKE &H1B9,LL1:POKE &H1BA,LL2
1320 BY=3*L-1:BYB=INT(BY/256):BYA=BY-256*BYB:POKE &H20D,BYA:POKE &H20E,BYB
1330 IF S%<0 THEN S!=65536!+S% ELSE S!=S%
1340 S2=INT(S!/256):S1=S!-256*S2:POKE &H163,S1:POKE &H164,S2
1360 PRINT:PRINT:PRINT" The program will add an appropiate Mode suffix."
1370 PRINT:INPUT" What Name for Picture (Default is DO NOT SAVE)";PIX$
1380 IF PIX$="" THEN GOTO 730
1390 IF I=3 THEN MO$=".s1":LE%=410
1400 IF I=4 THEN MO$=".s2":LE%=300
1410 IF I=5 THEN MO$=".90":LE%=360
1420 IF I=66 THEN MO$=".188":LE%=640
1430 IF I=6 THEN MO$=".94":LE%=450
1440 IF I=9 THEN MO$=".fax":LE%=480
1450 IF I=96 THEN MO$=".cfx":LE%=1440
1460 IF I=7 THEN MO$=".m1":LE%=420
1470 IF I=77 THEN MO$=".m2":LE%=300
1480 IF I=8 THEN MO$=".96":LE%=300
1490 L2=INT(LE%/256):L1=LE%-256*L2:POKE &H18B,L1:POKE &H18C,L2
1500 NF$=PIX$+MO$
1505 IF F$="y" THEN NF$=DR$+NF$
1510 K=&H100:CALL K(K%,L%,OF$,NF$)
1520 IF F$="n" THEN GOTO 730
1522 IF F$="y"THEN PRINT:PRINT:INPUT" What path/directory for compressed file";X$:GOTO 1524
1523 GOTO 1522
1524 SHELL "pk "+X$+" "+DR$+" "+PIX$+" "+MO$
1525 GOTO 730
1590 IF I=6 THEN POKE &H113,&H5C
1595 GOTO 720
1600 POKE &H113,&H62:POKE &H444,192:POKE 321,235:POKE 322,90 'ATI video mode 62
1610 POKE 324,136:POKE 325,196
1615 POKE 326,128:POKE 327,228:POKE 328,225:POKE 329,208:POKE 330,227:POKE 331,8
1620 POKE 332,220:POKE 333,176:POKE 334,178:POKE 335,254:POKE 336,202:POKE 337,239:POKE 338,195
1630 IF I=99 THEN POKE &H16A,128:POKE &H16B,2:POKE &H155,224:POKE &H156,1:POKE 321,233:POKE 322,66:POKE 323,4:POKE &H58A,192
1635 IF I=6 THEN POKE &H113,&H61
1640 GOTO 720
1650 POKE &H113,&H5F:POKE 321,186:POKE 322,206 'Paradise video mode 5f
1660 POKE 323,3:POKE 324,176:POKE 325,9:POKE 326,136:POKE 327,220:POKE 328,208
1665 POKE 329,228:POKE 330,208:POKE 331,228:POKE 332,208:POKE 333,228:POKE 334,208:POKE 335,228
1670 POKE 336,239:POKE 337,195
1680 IF I=99 THEN POKE &H16A,128:POKE &H16B,2:POKE &H155,224:POKE &H156,1
1685 IF I=6 THEN POKE &H113,&H5E
1690 GOTO 720
1700 POKE &H113,&H79:POKE 321,186:POKE 322,214 'Chips & Tech Mode 79
1710 POKE 323,3:POKE 324,176:POKE 325,16:POKE 326,136:POKE 327,220:POKE 328,208
1715 POKE 329,228:POKE 330,208:POKE 331,228:POKE 332,239:POKE 333,195
1730 IF I=99 THEN POKE &H16A,128:POKE &H16B,2:POKE &H155,224:POKE &H156,1
1735 IF I=6 THEN POKE &H113,&H78
1740 GOTO 720
1750 POKE &H113,&H5C:POKE 321,186:POKE 322,196 'Genoa mode 5c
1760 POKE 323,3:POKE 324,176:POKE 325,6:POKE 326,238:POKE 327,66:POKE 328,236
1765 POKE 329,36:POKE 330,199:POKE 331,128:POKE 332,227:POKE 333,7:POKE 334,208
1770 POKE 335,227:POKE 336,208:POKE 337,227:POKE 338,208:POKE 339,227:POKE 340,8
1780 POKE 341,216:POKE 342,238:POKE 343,195
1785 IF I=99 THEN POKE &H16A,128:POKE &H16B,2:POKE &H155,224:POKE &H156,1
1787 IF I=6 THEN POKE &H113,&H7E
1790 GOTO 720
1800 POKE &H111,79:POKE &H113,2:POKE 321,177 'VESA mode 101
1810 POKE 322,BS:POKE 323,210:POKE 324,227:POKE 325,136:POKE 326,218
1820 POKE 327,48:POKE 328,246:POKE 329,184:POKE 330,5:POKE 331,79:POKE 332,49:POKE 333,219:POKE 334,205
1821 POKE 335,16:POKE 336,195:POKE &H465,48:POKE &H466,255
1835 'IF I=6 THEN POKE &H398,0
1840 GOTO 720
2000 ' SYSTEM CONFIGURATION
2010 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2015 DR$="d:" 'RAMDRIVE designation
2020 V=1 'V=0 is manual video card choice. V=1 is choice in line 2030.
2030 VC=7 'Video Card 1=Trident 2=Tseng 3=ATI 4=Paradise 5=Chips 6=Genoa
2040 '7=VESA (VESA card or VESA driver.Pick BS below to get full pix.)
2045 BS=4 'Bank Shift for different VESA configurations-values from 0 to 6
2050 DL=6 'Delay in sec.'s between slides in AUTO mode
2080 PT=6 'Pixels Trimmed from right edge of picture
2090 EX=1 'For S2 and M2. EX=0 is as rcvd. EX=1 is EXpanded to fill screen
2100 GOTO 20