home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Falcon 030 Power 2
/
F030_POWER2.iso
/
ST_STE
/
MAGS
/
STOSBTS2.ARJ
/
stosbts2.msa
/
T.LST
< prev
next >
Wrap
File List
|
1987-04-22
|
2KB
|
85 lines
Spoke &H484,4
File$="A:\DATA\top25pd.DAT"
Dim Ls(3000)
Open "i",#1,File$
L%=Lof(#1)
Close #1
A$=""
A$=Space$(L%)
Bload File$,Varptr(A$)
C=2
Ls(1)=1
For K=0 To L%
If Asc(Mid$(A$,K,1))=13 Then
Ls(C)=K
C=C+1
Endif
Next K
Bottom=C
Rem SINGLE LINE TEXT SCROLLING ROUTINE BY ADAM MEDLEY 1991
Page=1
Cls
Am=Ls(24)-Ls(1)
Print Mid$(A$,Ls(1),Am)
Do
Z=Inp(2)
If Z=208 Then
Gosub Down_line
Endif
If Z=200 Then
Gosub Up_line
Endif
If Z=56 Then
Gosub Up_page
Endif
If Z=50 Then
Gosub Down_page
Endif
Loop
Procedure Down_line
If Page<=Bottom-26 Then
Bmove Xbios(3)+(8*160),Xbios(3),(192*160)
Page=Page+1
Am=Ls(Page+24)-Ls(Page+23)
Print At(0,23);Space$(80)
Print At(0,23);Mid$(A$,Ls(Page+23),Am)
Endif
Return
Procedure Up_line
If Page>1
Bmove Xbios(3),Xbios(3)+(8*160),(184*160)
Page=Page-1
Am=Ls(Page+1)-Ls(Page)
Print At(1,1);Space$(80)
Print At(1,1);Mid$(A$,Ls(Page),Am)
Endif
Return
Procedure Up_page
If Page>24
Cls
Page=Page-24
Am=Ls(Page+24)-Ls(Page)
Print At(1,1);Mid$(A$,Ls(Page),Am)
Endif
If Page<24
Page=0
Cls
Am=Ls(Page+24)-Ls(Page)
Print At(1,1);Mid$(A$,Ls(Page),Am)
Endif
Return
Procedure Down_page
If Page<=Bottom-50
Cls
Page=Page+24
Am=Ls(Page+24)-Ls(Page)
Print At(1,1);Mid$(A$,Ls(Page),Am)
Endif
If Page>Bottom-50
Page=Bottom-26
Cls
Am=Ls(Page+24)-Ls(Page)
Print At(1,1);Mid$(A$,Ls(Page),Am)
Endif
Return