8-Bit Software Online Conversion
:0.$.Menu - Listing
10*TV255,1
20REM 8BS Menu By S.Flintham
30*FX119
40MODE3
50VDU22,7
60VDU23;8202;0;0;0;
70PROCa
80PROCb
90ONERRORVDU3:MODE7:REPORT:PRINT" at
line ";ERL:PROCc("KEY0 LIST "+STR$(ERL)+
"|M"):PROCc("FX138,0,128"):PROCd:END
100REPEAT
110e$=FNf
120IFLEFT$(e$,1)<>CHR$(27)THENPROCg(e$
):*DIR $
130UNTILLEFT$(e$,1)=CHR$(27)
140MODE7
150PROCd
160END
170:
180DEFPROCa
190*FX225,128
200*FX229,1
210*FX4,1
220ENDPROC
230:
240DEFPROCd
250*FX225,1
260*FX229,0
270*FX4,0
280ENDPROC
290:
300DEFPROCb
310DIMh%256
320i$=FNj
330PROCk
340l$="33"
350m$="Mar 1994"
360n$=":0.$.7TO3":REM "$.7TO3"
370f%=1
380e%=1
390PROCo
400ENDPROC
410:
420DEFFNS
430="Menu"
440:
450DEFPROCk
460i%=2
470p%=3
480q%=5
490r%=6
500s%=7
510t%=6
520u%=2
530v%=5
540w%=4
550x%=3
560y%=2
570z%=3
580aa%=7
590ba%=7
600ENDPROC
610:
620DEFPROCo
630LOCALca%
640VDU26,12
650PRINTCHR$(128+i%);" I.D. ";i$;" ";C
HR$(144+p%);"¶///////%¶/////////////////
¶";
660PRINTCHR$(144+p%);"¶///////////*///
/////";CHR$(128+r%);" Issue ";LEFT$(l
$,2);" ";CHR$(144+p%);"¶";
670PRINTCHR$(144+p%);"¶";CHR$(144+q%);
"jk 74$5 j£`p`pj 0 0p0p`p ";CH
R$(144+p%);"¶";
680PRINTCHR$(144+p%);"¶";CHR$(144+q%);
"jk"!7457 "kjjj$j!545=55j.";CHR$(128+r%
);LEFT$(m$,8);CHR$(144+p%);"¶";
690PRINTCHR$(144+p%);"
""£ £ !£! "£"£" "!££!!!!"£ ";CH
R$(145);" ";
700FORca%=1TO18
710PRINTCHR$(144+p%);"¶";SPC(36);CHR$(
144+p%);"¶";
720NEXT
730PRINTCHR$(144+p%);"¶|||||||||||||||
||||||||||||||||||||||¶";
740VDU28,2,22,37,5
750ENDPROC
760:
770DEFPROCc($h%)
780LOCALX%,Y%
790X%=h%MOD256
800Y%=h%DIV256
810CALL&FFF7
820ENDPROC
830:
840DEFFNj
850LOCALda%,i$
860da%=OPENIN("!Boot")
870IFda%=0THENPROCea("No !Boot file -
unable to read user ID!")
880PTR#da%=EXT#da%-4
890i$=CHR$(BGET#da%)+CHR$(BGET#da%)+CH
R$(BGET#da%)
900CLOSE#da%
910=i$
920:
930DEFPROCea(fa$)
940VDU22,7
950PRINTfa$
960PROCd
970END
980:
990DEFFNf
1000LOCALga%,s$,ha%,ia%,ja$,ka$,ka%
1010REPEAT
1020CLS
1030PROCla(f%)
1040READs$,ha%
1050IFha%>14THENha%=14
1060PRINTTAB(0,0);CHR$(128+s%);TAB(1+(1
7.5-(LEN(s$)/2)),0);s$
1070FORia%=1TOha%
1080READja$,ka$,ka$,ka$,ka%,ka%,ka%
1090PRINTTAB(1,1+ia%);" ";CHR$(128+t%)
;CHR$(64+ia%);CHR$(128+u%);ja$;TAB(35,1+
ia%);CHR$156;
1100NEXT
1110PRINTTAB(1,1+e%);CHR$(128+w%);CHR$1
57;
1120PRINTTAB(0,17);CHR$(128+v%);"Press"
;CHR$129;"f0";CHR$(128+v%);"for help if
necessary...";
1130REPEAT
1140REPEAT
1150*FX21
1160ga%=GET
1170IFga%>=ASC("a")ANDga%<=ASC("z")THEN
ga%=ga%-32
1180UNTILga%=128ORga%=138ORga%=139ORga%
=13OR(ga%>=65ANDga%<=(64+ha%))ORga%=ASC(
"8")ORga%=ASC("O")ORga%=ASC("P")OR(ga%=2
7ANDINKEY(-1))
1190PRINTTAB(1,1+e%);" ";
1200IFga%=138ANDe%<ha%THENe%=e%+1
1210IFga%=139ANDe%>1THENe%=e%-1
1220IFga%>=65ANDga%<=(64+ha%)THENe%=ga%
-64
1230PRINTTAB(1,1+e%);CHR$(128+w%);CHR$1
57;
1240UNTILga%=13ORga%=128ORga%=ASC("P")O
Rga%=ASC("8")ORga%=ASC("O")ORga%=27
1250IFga%=128THENPROCma
1260UNTILga%=13ORga%=ASC("P")ORga%=ASC(
"8")ORga%=ASC("O")ORga%=27
1270=CHR$(ga%)+STR$(e%)
1280:
1290DEFPROCma
1300LOCALga%
1310CLS
1320PRINTTAB(5,0);CHR$(128+x%);"Using t
he 8BS menu system"
1330PRINTTAB(0,2);CHR$(128+y%);"Use the
up and down cursor keys to"'CHR$(128+y%
);"move the bar or press the letter"'CHR
$(128+y%);"next to the required menu opt
ion to";CHR$(128+y%);"position it immedi
ately."
1340PRINT'CHR$(128+y%);"Press RETURN to
load or view the"'CHR$(128+y%);"highlig
hted program/article. If it"'CHR$(128+y%
);"is an article, pressing 8 will"'CHR$(
128+y%);"display it in 80 columns. Press
ing"
1350PRINTCHR$(128+y%);"P will print it
out and pressing O"'CHR$(128+y%);"will a
llow you to view it in"'CHR$(128+y%);"te
letext mode with your own choice"'CHR$(1
28+y%);"of scrolling keys."
1360PRINTTAB(0,16);CHR$(128+z%);"Press"
;CHR$(129);"f0";CHR$(128+z%);"for more h
elp or ESCAPE"'CHR$(128+z%);"to return t
o the menu...";
1370REPEAT
1380*FX21
1390ga%=GET
1400UNTILga%=27ORga%=128
1410IFga%=27THENENDPROC
1420CLS
1430PRINTTAB(5,0);CHR$(128+x%);"Using t
he 8BS menu system"
1440PRINTTAB(0,2);CHR$(128+y%);"Pressin
g SHIFT and ESCAPE together"'CHR$(128+y%
);"at the menu will return you to"'CHR$(
128+y%);"BASIC."
1450PRINTTAB(0,16);CHR$(128+z%);"Press
ESCAPE to return to the"'CHR$(128+z%);"m
enu...";
1460REPEAT
1470*FX21
1480ga%=GET
1490UNTILga%=27
1500ENDPROC
1510:
1520DEFPROCg(e$)
1530LOCALna%,ka$,oa$,pa$,qa$,ra%,sa%,ta
%
1540PROCla(f%)
1550READka$,ka%
1560FORna%=1TOVAL(MID$(e$,2))
1570READka$,oa$,pa$,qa$,ra%,sa%,ta%
1580NEXT
1590IFta%=0ANDpa$<>""THENPROCc("DIR "+p
a$)
1600IFra%ANDNOTsa%THENPROCua(ASC(LEFT$(
e$,1)),qa$):ENDPROC
1610IFra%ANDsa%THENPROCva(ASC(LEFT$(e$,
1)),qa$):ENDPROC
1620IFta%>0THENf%=ta%:e%=1:ENDPROC
1630PROCd
1640IFLEFT$(oa$,1)="*"THENPROCc(oa$+" "
+qa$):END
1650IFoa$="CHAIN"THENCHAINqa$
1660IFoa$="LOAD"THENPROCc("KEY0 LOAD "+
CHR$(34)+qa$+CHR$(34)+"|MLIST|N|M"):PROC
c("FX21"):PROCc("FX138,0,128"):PROCd:VDU
22,7:END
1670END
1680:
1690DEFPROCua(ga%,qa$)
1700VDU22,3
1710VDU23;8202;0;0;0;
1720*FX21
1730IFga%<>ASC("P")THENPRINT'"Press SHI
FT to scroll or ESCAPE for the menu..."'
:VDU14ELSEPRINT'"Press SPACE when you ar
e ready to print... (Press ESCAPE to qui
t)"':REPEATUNTILGET=32:VDU2
1740ONERRORIFERR=17THENPROCc("FX229,1")
:VDU3,22,7:VDU23;8202;0;0;0;:PROCo:GOTO9
0ELSEVDU3:MODE7:REPORT:PRINT" at line ";
ERL:PROCc("KEY0 LIST "+STR$(ERL)+"|M"):P
ROCc("FX138,0,128"):PROCd:END
1750*FX229,0
1760PROCc("Type "+qa$)
1770*FX229,1
1780ONERRORVDU3:MODE7:REPORT:PRINT" at
line ";ERL:PROCc("KEY0 LIST "+STR$(ERL)+
"|M"):PROCc("FX138,0,128"):PROCd:END
1790IFga%<>ASC("P")THENVDU15ELSEVDU3
1800PRINT'"Press ESCAPE to return to th
e menu...";
1810*FX21
1820REPEATUNTILGET=27
1830VDU22,7
1840VDU23;8202;0;0;0;
1850PROCo
1860ENDPROC
1870:
1880DEFPROCva(ga%,qa$)
1890IFINSTR(qa$,"@")<>0AND(ga%=ASC("P")
ORga%=ASC("8"))THENqa$=FNwa(qa$)
1900IFINSTR(qa$,"@")<>0ANDga%<>ASC("P")
ANDga%<>ASC("8")THENqa$=LEFT$(qa$,INSTR(
qa$,"@")-1)
1910?&80=&C6:?&81=&D6
1920IFga%=ASC("P")THEN$&A00=qa$:Z%=1:CH
AINn$
1930IFga%=ASC("8")THEN$&A00=qa$:Z%=0:CH
AINn$
1940IFga%=ASC("O")THENPROCxa(qa$)
1950PROCc("RUN "+qa$)
1960ENDPROC
1970:
1980DEFFNwa(qa$)
1990LOCALga%
2000CLS
2010PRINTCHR$(128+ba%);"Which part of t
he article? (1/2)";
2020REPEAT
2030*FX21
2040ga%=GET
2050UNTILga%=49ORga%=50
2060IFga%=49THEN=LEFT$(qa$,INSTR(qa$,"@
")-1)
2070=MID$(qa$,INSTR(qa$,"@")+1)
2080:
2090DEFPROCxa(qa$)
2100CLS
2110PRINTCHR$(128+aa%);"Please press th
e key to use to"'CHR$(128+aa%);"scroll u
p..."
2120?&80=0
2130?&80=FNya
2140PRINT'CHR$(128+aa%);"Please press t
he key to use to"'CHR$(128+aa%);"scroll
down..."
2150*FX21
2160?&81=FNya
2170PROCc("KEY0 *LOAD "+qa$+" 1900|M?&1
974=?&80:?&1981=?&81|MCALL&1904|F|M")
2180*FX21
2190VDU21
2200PROCd
2210*FX138,0,128
2220END
2230:
2240DEFFNya
2250LOCALA%,B%
2260REPEAT
2270A%=&7A
2280!&70=USR(&FFF4)
2290B%=255-(?&71)
2300UNTILB%<>0ANDB%<>182ANDB%<>?&80
2310=B%
2320DEFPROCla(f%)
2330IFf%=1THENRESTORE
2340IFf%=2THENRESTORE 2510
2350IFf%=3THENRESTORE 2630
2360IFf%=4THENRESTORE 2750
2370IFf%=5THENRESTORE 2880
2380IFf%=6THENRESTORE 2980
2390ENDPROC
2400:
2410DATA Main Menu.,8
2420DATA About This Issue.,,:0,Thi1,-1,
-1,0
2430DATA Program Documentation.,,:0,Pro
gDoc,-1,-1,0
2440DATA New 8BS Questionnaire.,CHAIN,:
2,Quaire,0,0,0
2450DATA Magazine Menu 1.,,,,0,0,2
2460DATA Magazine Menu 2.,,,,0,0,3
2470DATA Utilities Menu.,,,,0,0,4
2480DATA Games etc.,,,,0,0,5
2490DATA ADFS Extra Menu.,,,,0,0,6
2500:
2510DATA Magazine Menu 1.,10
2520DATA Messages and Ads 1.,,:0,Mes1,-
1,-1,0
2530DATA Messages and Ads 2.,,:0,Mes2,-
1,-1,0
2540DATA Messages and Ads 3.,,:0,Mes3,-
1,-1,0
2550DATA Messages and Ads 4.,,:0,Mes4,-
1,-1,0
2560DATA Messages to You.,,:0,uu,-1,-1,
0
2570DATA The Reactor.,,:0,Reactor,-1,-1
,0
2580DATA What Next?,,:2,Editori,-1,-1,0
2590DATA 8BS History. Part 1.,,:2,8BShs
t1,-1,0,0
2600DATA Magazine Menu 2.,,,,0,0,3
2610DATA Return to Main Menu.,,,,0,0,1
2620:
2630DATA Magazine Menu 2.,10
2640DATA 8BS Messaging System Info.,,:0
,QMesInf,-1,-1,0
2650DATA Joining 2 Computers. Part 1.,,
:0,Marry1,-1,-1,0
2660DATA Back to BASICs.,,:0,Basics,-1,
-1,0
2670DATA 8BS Statistics+.,,:2,StatNat,-
1,0,0
2680DATA 8BS Questionnaire Info.,,:2,Qu
Inf,-1,-1,0
2690DATA Patterns Info.,,:2,PatText,-1,
0,0
2700DATA Arc v PC Debate.,,:0,ARCvPC,-1
,-1,0
2710DATA The Acorn User Show.,,:0,AUSho
w,-1,-1,0
2720DATA Magazine Menu 1.,,,,0,0,2
2730DATA Return to Main Menu.,,,,0,0,1
2740:
2750DATA Utilities Menu.,11
2760DATA 8BS Messaging System. V 1.03,C
HAIN,:2,SendMes,0,0,0
2770DATA Alex Whitehead Menu.,CHAIN,:2,
White,0,0,0
2780DATA Messaging System. F Key strip.
,CHAIN,:2,MessStr,0,0,0
2790DATA Cassette Database.,CHAIN,:2,Ca
store,0,0,0
2800DATA RS423 Send.,CHAIN,:2,TestSnd,0
,0,0
2810DATA RS423 Receive.,CHAIN,:2,TestRe
c,0,0,0
2820DATA Wordwise Plus Utils.,CHAIN,:0,
STOP,0,0,0
2830DATA Income and Investment.,CHAIN,:
2,Money,0,0,0
2840DATA Electrical Costs.,CHAIN,:2,El-
Cost,0,0,0
2850DATA 8BS Menu Reader. v2,CHAIN,:2,M
enRead,0,0,0
2860DATA Return to Main Menu.,,,,0,0,1
2870:
2880DATA Games etc Menu.,8
2890DATA Sliding Block Puzzle.,CHAIN,:2
,Slide,0,0,0
2900DATA Crosswords.,CHAIN,:2,X-Word,0,
0,0
2910DATA Patterns.,CHAIN,:2,Pattern,0,0
,0
2920DATA Patterns II.,CHAIN,:2,Pat2,0,0
,0
2930DATA Pete. (Printer ON).,CHAIN,:2,P
Pete,0,0,0
2940DATA 3D Roller Ball.,CHAIN,:2,3-Dro
ll,0,0,0
2950DATA Sevens. Card Game.,CHAIN,:2,Se
vensL,0,0,0
2960DATA Return to Main Menu.,,,,0,0,1
2970:
2980DATA ADFS Menu.,1
2990DATA Return to Main Menu.,,,,0,0,1