home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / tel / x-ldr.ba < prev    next >
Text File  |  2006-10-19  |  10KB  |  124 lines

  1. 1 REM Copyright 1986 Sigea Systems, Inc.  All Rights Reserved.
  2. 1'>63`O;jIK@OOC2182<B:8A:=3:=000;:HA:D;J<<1A81@MA0;AB39A:0:::3@I0L3?LCIIK9M38
  3. 1'<90>1I81FJ:CI;7831N:CM3CK;5;3CB90HK>39>@8:K3<DA0IK9M3883CI:BI;CMCBI3539>38:
  4. 1'00:oCN=J=VF28O6`IO5O69C?c80>>D81Nb?7^6=`J;4=2a:?>F34;>1>L506a>=b;B_@J3>04N8
  5. 1'`I3iEKT=?WJ?AL@3F9QH8NOEGHG5KJdBGiG047>NJG8?>l:O`@=iF>?F9`H6iE=61N[>33G6100
  6. 1'K>=`C=K;N5>=`771N=N77`EIiGCb=G=IJEO;<IJ^GI<F8jIGb8<=AJ]O;a>0i>E@F=h;B`>AfF8
  7. 1'iIB0ON<F2[O7<ALjIF[N9c>9K;=c>8K;N=631G7c81iG@?F:b?7oI1?GElH3HF=nJJ>F9mAMb5G
  8. 1'>F=`J2@E8XAJCOO2?6N66N8?>F9jI<n7N:F9jI=S12b?L0118@0o4<:F9o4I1G;:@1jI8bFOiLC
  9. 1':@5jI6bFOiLC0@6<CHjIE1F9i@0bC0iM6i@4bA0iM6N04=9Bb?;AF=c9185?c>8iLH?5?>F9jI<
  10. 1'[JG811c?;C8BS1:8GLjI=M>3:G7jI?=9J??;[F:lA18=48KN8MF8N8[I38MNh>2`O7iNIc6=8G7
  11. 1'jIA:G;jI?O?;KLCVCLb;7=9J??;5OJbA07MOf>3e8OK>=d;;N>HHF=c:Jj0Jb=?WN=>C;jIEb1M
  12. 1';?Jc?8iF5\1:2?K\12b?K[A:2?K[A2b?KAF=>A1jIEnAMj28D6::G8nMBX1N:F9nM>:I;P1N:F9
  13. 1'nM@?A;b>0c6=jO7<9:@G;c:;iF5A09jJ=c>9iK8MN:c?8iK>6AN`O7iKE=9J??;T62c?8j2G5NJ
  14. 1':G8jIA7HA0?;001263m?8;I:i?;FF=c?8j0G4?1jI01@1l80Z?B0?800226=c?8iM;nN3F77CAH
  15. 1'A2H000000000000000800DA8HK5J;5I;F83BI;BM;ALK5I;D834DB3::32@=A00K35M35835J;6
  16. 1'I;<CH0M3EKI0836I;=KK=N;B2@=B80MC>K31I39IA0K39835N;DI;@2@=EH0J;1J;DIK>IA0LC?
  17. 1'LI0H;DM3B;A>39>00:KJ4I;>2@=380K22HK?LK;K10IC583DKKDLI0KC5>C4010@@=KK<JK383C
  18. 1'I;BI;3MC9I3581JD@0L35H;<I;3I90J;HM3CKC9837J;6I;<380K22HK?LK;LI0KC5>CD010DIL
  19. 1'H;@I;381NKKDHI0KC?J;DM;>;C5;A>800@I8@JB019I:BKK3I3BM1083?J;6I;<@80L3@KC5834
  20. 1'KKDI90J;HM3CKC9837J;6I;<D@0HK5J;5I;F83BJ;CKC7K31I35I90LCBLC?2@=D@0HK5J;5I;F
  21. 1'83BHC1LC?I;D3;400:J:DI;=834M;?83DKC?LA0HK5J;5I;F3;B00:LB5KKB83BJ;<J;=83DN35
  22. 1'I;3I35I352@=:00H:GM39KC9:;72@=B80MC>K31I39HA0KK<JK32@=D00KKBKKDKK383<N;CHK>
  23. 1'IA0J;1M;<I;B2@=DH0KC5I;483BI;BI;@M31I35HA0KK<JK32@=@H0I;8JK3M;C83=LC5KKB3;B
  24. 1'00:I:CI3>LC5H90KK2M3BI352@=B80MC>K31I39IA0K39835KK6K;BM312@=A00LC9HK5KKDN;B
  25. 1'IA0K3E3;<00:LB5KKB>CBI10MK?K3>H;?834KC9L10KKBLC7LK53;C00:;A>;A>000000000000
  26. 1'000000;A>;A>F00A1=F3>E9=AC@K39BK5K39E3<F25@BDDJ1829JJ3E;CC3@DB6HK583?810C90
  27. 1'KC53;E6H06K@9JI;@0;A>6I>03A00J000000@@0A2182?010000000000000000`H0k@<?I1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l=Hl=K
  93. 1'l=Nl>3l>6l>;l>?l>Dl>Jl>Ml?3l?6l?9l?<l??l?Bl?El?Il?Ll?Ol@4l@7l@:l@?l@Bl@El@I
  94. 1'l@Ll@OlA3lA6lA;lA@lAElAHlAKlANlB1lB4lB7lB:lB=lB@lBClBFlBIlBLlBOlC2lC5lC8lC;
  95. 1'lC>lCAlCElCLlCOlD2lD6lD:lD=lD@lDClDGlDJlDMlE0lE3lE6lE;lE>lEBlEHlEKlENlF1lF7
  96. 1'lF:lF=lF@lFClFFlFOlG4lG7lG:lG=lG@lGFlGIlGNlH1lH4lH7lH>lHAlHDlHHlHLlI0lI5lI9
  97. 1'lI?lIBlIElIJlIMlJ3lJ7lJ:lJ=lJClJFlJKlJNlK2lK6lK:lK=lKBlKFlKIlKLlL1lL5lL:lL?
  98. 1'lLLlM2lM9lM=lMBlMFlMJlMMlN1lN4lN?lNHlNMlO0lO3lO9lO=lOBlOElOIm00m09m0>m0Am0D
  99. 1'm0Gm0Jm0Nm11m18m1=m1Bm1Km21m27m2?m2Bm2Fm2Im2Mm3:m3Cm3Im3Lm43m46m4=m4A
  100. 1
  101. 1 MAXFILES=1:ONERRORGOTO19:INPUT"Specify X-TEL load address (Y/N)";Y$:IFINSTR("Nn",Y$)THENCLEAR256,MAXRAM-62960+58923:GOTO3
  102. 2 INPUT"Load X-TEL below address";S:IFS>MAXRAMTHENPRINT"Must be <=";MAXRAM:GOTO2ELSECLEAR256,S-62960+58923
  103. 3 ONERRORGOTO19:DEFINTX,L-N:Y=HIMEM:OPEN"X-TEL"FORINPUTAS1:ONERRORGOTO0:PRINT"Loading...";:VF=499926:RL=58923-Y
  104. 4 LINEINPUT#1,L$:IFL$="1"THEN8ELSEIFLEFT$(L$,2)<>"1'"THEN4
  105. 5 PRINT".";:LP=0:POKEVARPTR(LP),PEEK(VARPTR(L$)+1):POKEVARPTR(LP)+1,PEEK(VARPTR(L$)+2)
  106. 6 FORX=2TOLEN(L$)-1STEP3:NH=PEEK(LP+X)-48:NM=PEEK(LP+X+1)-48:NL=PEEK(LP+X+2)-48
  107. 7 LS=(NM*32AND255)+NL:POKEY,LS:MS=NH*4+NM\8:POKEY+1,MS:Y=Y+2:VF=VF-(MS+LS):NEXT:GOTO4
  108. 8 E=Y:IFVFTHENPRINT"Bad program data.":STOP
  109. 9 IFRLTHENPRINT:PRINT"Relocating...";:VF=209394ELSE15
  110. 10 LINEINPUT#1,L$:IFL$="1"THEN14ELSEIFLEFT$(L$,2)<>"1'"THEN10
  111. 11 PRINT".";:LP=0:POKEVARPTR(LP),PEEK(VARPTR(L$)+1):POKEVARPTR(LP)+1,PEEK(VARPTR(L$)+2)
  112. 12 FORX=2TOLEN(L$)-1STEP3:NH=PEEK(LP+X)-48:NM=PEEK(LP+X+1)-48:NL=PEEK(LP+X+2)-48:LS=(NM*32AND255)+NL:MS=NH*4+NM\8:VF=VF-(MS+LS)
  113. 13 A=LS+256*MS-RL:M=PEEK(A)+256*PEEK(A+1)-RL-65536:POKEA,PEEK(VARPTR(M)):POKEA+1,PEEK(VARPTR(M)+1):NEXT:GOTO10
  114. 14 IFVFTHENPRINT"Bad relocation data.":STOPELSEPRINT:INPUT"Use with PCSG Chipmunk disk (Y/N)";Y$:IFINSTR("Nn",Y$)=0THENPOKEHIMEM+6,254
  115. 15 CLOSE#1:OPEN"X-TEL"FOROUTPUTAS1:FORX=1TO19:PRINT#1,X:NEXT:PRINT#1,"24 IFHIMEM<=";HIMEM;"THENCALL";HIMEM+3:CLOSE#1
  116. 16 QU$=CHR$(34):CR$=CHR$(13):A$="MERGE"+QU$+"X-TEL.DO"+CR$+"SAVE"+QU$+"X-TEL"+CR$+"KILL"+QU$+"X-TEL.DO"+CR$+"RUN"+CR$+CHR$(0)
  117. 17 FORX=1TOLEN(A$):POKE65349+X,ASC(MID$(A$,X)):NEXT:POKE63020,70:POKE63021,255:POKE65451,11:POKE65452,255:POKE65450,1
  118. 18 A$="CALL"+STR$(HIMEM)+CR$+CHR$(0):FORX=1TOLEN(A$):POKEHIMEM+6+X,ASC(MID$(A$,X)):NEXT:SAVEM"X-TEL",HIMEM,E-1,HIMEM+3:END
  119. 19 IFERR=7THENPRINT"Not enough memory for X-TEL.CO!":ENDELSEPRINT"Please rename the file as X-TEL.DO,":PRINT"and then type RUN.":END
  120. 21 ONERRORGOTO22:RUNM"X-TEL"
  121. 22 IFERR=7THENCLEAR256,PEEK(64206)+256*PEEK(64207):GOTO21
  122. 23 IFERR<>52THENPRINT"X-TEL load failure: ";:ERRORERR:END
  123. 25 PRINT"Please restore X-TEL.CO and try again.":END
  124.