Home » Personal collection » Acorn DFS disks » dfs_box03_disk02b_format_some_games.scp » W.KEYBD » Compare

Compare W.KEYBD with KEYBOARD

File: Personal collection » Acorn DFS disks » dfs_box03_disk02b_format_some_games.scp » W.KEYBD
Compared with: Personal collection » Acorn tapes » Commercial_Releases » boxed_acornsoft_tape13a_acorn_bbc_welcome_cassette.wav » KEYBOARD
Similarity: 99% of bytes duplicated

335 of 339 lines (99.0%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

W.KEYBD KEYBOARD
10 REM KBD/Keyboard Familiarisation 10 REM KBD/Keyboard Familiarisation
12 REM Program by Andrew Chapman & Rod Mulvey (NETHERHALL SCHOOL) & Richard G Warner 12 REM Program by Andrew Chapman & Rod Mulvey (NETHERHALL SCHOOL) & Richard G Warner
13 REM Version 5 - October 1981 13 REM Version 5 - October 1981
14 REM For BBC Model A Microcomputer 16K Minimum 14 REM For BBC Model A Microcomputer 16K Minimum
40 ON ERROR GOTO50 40 ON ERROR GOTO50
50 MODE7 50 MODE7:IF M%=0 THEN PRINTTAB(5,16);"Press the STOP button"'" on your tape recorder":PROCSPACE
80 CLS:PART=0:ON ERROR GOTO 800 80 CLS:PART=0:ON ERROR GOTO 800
100 PROCTITLEPAGE 100 PROCTITLEPAGE
105 DIM LED(3,5):REMSTATUS OF LEDS IN EACH PROG PART 105 DIM LED(3,5):REMSTATUS OF LEDS IN EACH PROG PART
110 FOR X=1 TO 5:READ LED(1,X),LED(2,X),LED(3,X):NEXT 110 FOR X=1 TO 5:READ LED(1,X),LED(2,X),LED(3,X):NEXT
120 DATA 0,0,1,0,0,1,0,1,0,0,1,0,0,0,0 120 DATA 0,0,1,0,0,1,0,1,0,0,1,0,0,0,0
140 FL$=CHR$(&88):ST$=CHR$(&89):R$=CHR$(&81):W$=CHR$(&87) 140 FL$=CHR$(&88):ST$=CHR$(&89):R$=CHR$(&81):W$=CHR$(&87)
150 C$=CHR$(&83):G$=CHR$(&93) 150 C$=CHR$(&83):G$=CHR$(&93)
160 CL$=C$+"CAPS LOCK"+W$ 160 CL$=C$+"CAPS LOCK"+W$
170 SL$=C$+"SHIFT LOCK"+W$ 170 SL$=C$+"SHIFT LOCK"+W$
180 SH$=C$+"SHIFT"+W$ 180 SH$=C$+"SHIFT"+W$
189 PART=1 189 PART=1
200 DIMK(9),T(9),D(9) 200 DIMK(9),T(9),D(9)
210 FOR X=1 TO 9:READ K(X),T(X),D(X):NEXT 210 FOR X=1 TO 9:READ K(X),T(X),D(X):NEXT
211 REM THESE ARRAYS ARE USED TO DECIDE KEY TYPES (K & T) 211 REM THESE ARRAYS ARE USED TO DECIDE KEY TYPES (K & T)
212 REM & WHETHER ERRORS COULD BE CAUSED BY SHIFT CONFUSION 212 REM & WHETHER ERRORS COULD BE CAUSED BY SHIFT CONFUSION
220 DATA 44,4,16 220 DATA 44,4,16
230 DATA 48,3,16 230 DATA 48,3,16
240 DATA 60,3,-16 240 DATA 60,3,-16
250 DATA 64,4,-16 250 DATA 64,4,-16
260 DATA 65,3,0 260 DATA 65,3,0
270 DATA 91,2,32 270 DATA 91,2,32
280 DATA 95,3,1 280 DATA 95,3,1
290 DATA 96,4,1 290 DATA 96,4,1
295 DATA 123,1,-32 295 DATA 123,1,-32
300 CLS:PRINT''' 300 CLS:PRINT'''
310 PRINT"This program helps you to find your" 310 PRINT"This program helps you to find your"
320 PRINT"way around the keyboard and to use" 320 PRINT"way around the keyboard and to use"
330 PRINT"the"CL$","SL$"and"SH$'"keys."' 330 PRINT"the"CL$","SL$"and"SH$'"keys."'
340 PRINT"You will be shown a character which" 340 PRINT"You will be shown a character which"
350 PRINT"you will have to find and press on"'"the keyboard."' 350 PRINT"you will have to find and press on"'"the keyboard."'
360 PRINT"The computer will time you and display" 360 PRINT"The computer will time you and display"
370 PRINT"your score along with the average time" 370 PRINT"your score along with the average time"
380 PRINT"that you take to find each key.":PROCSPACE 380 PRINT"that you take to find each key.":PROCSPACE
400 PART=0:PROCKBD:PROCESC 400 PART=0:PROCKBD:PROCESC
410 PRINTTAB(0,14)"This represents the keyboard."' 410 PRINTTAB(0,14)"This represents the keyboard."'
420 PRINT"Pressing the";FL$;"ESCAPE";ST$;"key will take" 420 PRINT"Pressing the";FL$;"ESCAPE";ST$;"key will take"
430 PRINT"you to the end of the program." 430 PRINT"you to the end of the program."
440 PROCSPACE:PART=1:GOTO1000 440 PROCSPACE:PART=1:GOTO1000
500 CLS:PRINT'''"You now have a choice of :" 500 CLS:PRINT'''"You now have a choice of :"
510 FOR I=1 TO 5 510 FOR I=1 TO 5
520 PRINTTAB(3,2*I+3);I;" - Repeat part ";I 520 PRINTTAB(3,2*I+3);I;" - Repeat part ";I
530 NEXT 530 NEXT
540 PRINTTAB(11,15)"or" 540 PRINTTAB(11,15)"or"
550 PRINT'"press the ESCAPE key if you want" 550 PRINT'"press the ESCAPE key if you want"
560 PRINT"to move on to the next program." 560 PRINT"to move on to the next program."
570 PART=0:SEL=0:PROCON 570 PART=0:SEL=0:PROCON
600 PRINTTAB(0,20)"Your choice (1-5)? "; 600 PRINTTAB(0,20)"Your choice (1-5)? ";
610 A$=GET$:IF ASC(A$)=13 THEN 680 610 A$=GET$:IF ASC(A$)=13 THEN 680
620 A=ASC(A$)-48:IF A<0 THEN A=A+16 620 A=ASC(A$)-48:IF A<0 THEN A=A+16
630 IF A<1 OR A>5 THEN 600 630 IF A<1 OR A>5 THEN 600
640 PRINTCHR$(A+48) 640 PRINTCHR$(A+48)
650 IF SEL>0 THENPRINTTAB(2,2*SEL+3);ST$ 650 IF SEL>0 THENPRINTTAB(2,2*SEL+3);ST$
660 PRINTTAB(2,2*A+3);FL$;A;ST$ 660 PRINTTAB(2,2*A+3);FL$;A;ST$
670 SEL=A:GOTO600 670 SEL=A:GOTO600
680 IF SEL=0 THEN 600 680 IF SEL=0 THEN 600
690 PART=SEL:PROCOFF:GOTO1000 690 PART=SEL:PROCOFF:GOTO1000
800 CLS:IF ERR<>17 THEN REPORT:PRINT" in line ";ERL:END 800 CLS:IF ERR<>17 THEN REPORT:PRINT" in line ";ERL:END
810 IF PART>0 THEN 500 810 IF PART>0 THEN 500
900 CLS 900 CLS
910 PRINTTAB(5,9); 910 PRINTTAB(5,9);
920 PRINT"Do you want to go on to" 920 PRINT"Do you want to go on to"
930 PRINT" the next program (Y/N)? "; 930 PRINT" the next program (Yes/No)? ";
940 PROCYESORNO:IF Y%<0 THEN 910 940 PROCYESORNO:IF Y%<0 THEN 910
950 IF Y%=0 THEN CLEAR:GOTO100 950 IF Y%=0 THEN CLEAR:GOTO100
970 CHAIN "SKETCH" 970 CLS:IF M%=0 THEN PRINTTAB(5,5);"Press the PLAY button"'" on your tape recorder"
990 CHAIN""
1000 PROCKBD:TESTS=0:TTIM=0:RIGHT=0 1000 PROCKBD:TESTS=0:TTIM=0:RIGHT=0
1010 ON PART GOTO 1100,1200,1300,1400,1500 1010 ON PART GOTO 1100,1200,1300,1400,1500
1100 REM PART 1 1100 REM PART 1
1120 PRINT"Check the red indicator lights" 1120 PRINT"Check the red indicator lights"
1130 PRINT"are lit correctly. They should" 1130 PRINT"are lit correctly. They should"
1140 PRINT"be as shown above." 1140 PRINT"be as shown above."
1150 PRINT'"If they are not, press the"FL$;SL$ 1150 PRINT'"If they are not, press the"FL$;SL$
1160 PRINT"key and check the display again." 1160 PRINT"key and check the display again."
1170 PROCSL:GOTO1900 1170 PROCSL:GOTO1900
1200 REM PART 2 1200 REM PART 2
1210 PRINT"The red indicator lights should" 1210 PRINT"The red indicator lights should"
1220 PRINT"be as shown above. This is the" 1220 PRINT"be as shown above. This is the"
1230 PRINT"same as part 1. If not press the"'FL$;SL$;ST$"key." 1230 PRINT"same as part 1. If not press the"'FL$;SL$;ST$"key."
1240 PROCSL:PROCSPACE:PROCCLEAR 1240 PROCSL:PROCSPACE:PROCCLEAR
1250 PRINT'"When you play the game this time," 1250 PRINT'"When you play the game this time,"
1260 PRINT"the symbols on top of the keys will" 1260 PRINT"the symbols on top of the keys will"
1270 PRINT"also be tested.":GOTO1900 1270 PRINT"also be tested.":GOTO1900
1300 REM PART3 1300 REM PART3
1310 PRINT"This part will examine the symbols" 1310 PRINT"This part will examine the symbols"
1320 PRINT"on the bottom of the keys, along" 1320 PRINT"on the bottom of the keys, along"
1330 PRINT"with the capital letters."' 1330 PRINT"with the capital letters."'
1340 PRINT"Release"SL$"by pressing the"'FL$;CL$;ST$;"key." 1340 PRINT"Release"SL$"by pressing the"'FL$;CL$;ST$;"key."
1350 PROCCL:PROCSPACE:PROCCLEAR 1350 PROCCL:PROCSPACE:PROCCLEAR
1360 PRINT"Check that the lights are correctly"'"lit." 1360 PRINT"Check that the lights are correctly"'"lit."
1370 PRINT'"Symbols on top of the keys cannot" 1370 PRINT'"Symbols on top of the keys cannot"
1380 PRINT"be obtained now." 1380 PRINT"be obtained now."
1390 GOTO1900 1390 GOTO1900
1400 REM PART 4 1400 REM PART 4
1410 PRINT"Ensure that"CL$"is still" 1410 PRINT"Ensure that"CL$"is still"
1420 PRINT"active by checking the red lights." 1420 PRINT"active by checking the red lights."
1430 PRINT'"If the display is wrong, press the"'CL$"key." 1430 PRINT'"If the display is wrong, press the"'CL$"key."
1440 PROCSPACE:PROCCLEAR 1440 PROCSPACE:PROCCLEAR
1450 PRINT"This time, capital letters and all" 1450 PRINT"This time, capital letters and all"
1460 PRINT"the symbols will be used. To obtain" 1460 PRINT"the symbols will be used. To obtain"
1470 PRINT"a symbol on the top of a key, press" 1470 PRINT"a symbol on the top of a key, press"
1480 PRINT"the key and";FL$;SH$;ST$;"key together." 1480 PRINT"the key and";FL$;SH$;ST$;"key together."
1490 PRINT"For example, to obtain ""$"", press"'FL$;SH$;ST$;"and ""4""." 1490 PRINT"For example, to obtain ""$"", press"'FL$;SH$;ST$;"and ""4""."
1495 PROCSH:GOTO1900 1495 PROCSH:GOTO1900
1500 REM PART5 1500 REM PART5
1510 PRINT"Press the"CL$"key. The lights" 1510 PRINT"Press the"CL$"key. The lights"
1520 PRINT"should all be off now." 1520 PRINT"should all be off now."
1530 PRINT"You are no longer locked into capital"'"letters." 1530 PRINT"You are no longer locked into capital"'"letters."
1540 PROCSPACE:PROCCLEAR 1540 PROCSPACE:PROCCLEAR
1550 PRINT"Small letters are now available." 1550 PRINT"Small letters are now available."
1560 PRINT'"Capital letters are produced when" 1560 PRINT'"Capital letters are produced when"
1570 PRINT"you press a letter key and"SH$'"together." 1570 PRINT"you press a letter key and"SH$'"together."
1580 PRINT'"For example, to get";C$;"h";W$;"press H." 1580 PRINT'"For example, to get";C$;"h";W$;"press H."
1590 PRINT"To get";C$;"H";W$;"press"FL$;SH$;ST$;"and H." 1590 PRINT"To get";C$;"H";W$;"press"FL$;SH$;ST$;"and H."
1595 PROCSH 1595 PROCSH
1900 PROCSPACE:PROCCLEAR 1900 PROCSPACE:PROCCLEAR
1910 PROCDBL("To begin the test ....",10,15) 1910 PROCDBL("To begin the test ....",10,15)
1920 PROCSPACE 1920 PROCSPACE
2000 REM PLAY GAME 2000 REM PLAY GAME
2010 FOR CHAR=1 TO 10 2010 FOR CHAR=1 TO 10
2020 CLS:PROCPUTSCORE 2020 CLS:PROCPUTSCORE
2060 PRINTTAB(5,5)"Part ";PART;" Question Number ";CHAR 2060 PRINTTAB(5,5)"Part ";PART;" Question Number ";CHAR
2070 PROCDBL("Find",12,8):E$=CHR$(FNGENE):PROCWAIT(.7) 2070 PROCDBL("Find",12,8):E$=CHR$(FNGENE):PROCWAIT(.7)
2080 PROCKCL:PROCDBL(E$,17,8):STIM=TIME 2080 PROCKCL:PROCDBL(E$,17,8):STIM=TIME
2100 I$=INKEY$(0):IF I$="" THEN 2100 2100 I$=INKEY$(0):IF I$="" THEN 2100
2110 ETIM=TIME:IA=ASC(I$):IF IA<33 THEN2100 2110 ETIM=TIME:IA=ASC(I$):IF IA<33 THEN2100
2120 IF IA>122 OR (IA>90 AND IA<95) THEN 2100 2120 IF IA>122 OR (IA>90 AND IA<95) THEN 2100
2130 TIM=ETIM-STIM:TTIM=TTIM+TIM:TESTS=TESTS+1 2130 TIM=ETIM-STIM:TTIM=TTIM+TIM:TESTS=TESTS+1
2140 PROCCOMPARE 2140 PROCCOMPARE
2150 NEXTCHAR:PROCWAIT(1) 2150 NEXTCHAR:PROCWAIT(1)
2160 CLS:PROCPUTSCORE 2160 CLS:PROCPUTSCORE
2200 PRINTTAB(10,10);"End of Part ";PART' 2200 PRINTTAB(10,10);"End of Part ";PART'
2210 PRINT"Press ""A"" to try this test again."' 2210 PRINT"Press ""A"" to try this test again."'
2220 IF PART=5 THEN PRINT"Otherwise";:GOTO2240 2220 IF PART=5 THEN PRINT"Otherwise";:GOTO2240
2230 PRINT"If you want to move on to the next"'"part,"; 2230 PRINT"If you want to move on to the next"'"part,";
2240 PRINT" press the RETURN key." 2240 PRINT" press the RETURN key."
2250 X$=GET$:IF X$="A" OR X$="a" THEN 1000 2250 X$=GET$:IF X$="A" OR X$="a" THEN 1000
2260 IF X$<> CHR$(13) THEN 2250 2260 IF X$<> CHR$(13) THEN 2250
2270 PART=PART+1:IF PART<6 THEN1000 2270 PART=PART+1:IF PART<6 THEN1000
2280 GOTO500 2280 GOTO500
3000 DEFPROCCOMPARE 3000 DEFPROCCOMPARE
3010 REM COMPARE USER INPUT (I$) WITH EXPECTED INPUT(E$) 3010 REM COMPARE USER INPUT (I$) WITH EXPECTED INPUT(E$)
3020 PROCDBL("You typed "+I$,9,11) 3020 PROCDBL("You typed "+I$,9,11)
3030 IF E$=I$ THEN RIGHT=RIGHT+1: 3030 IF E$=I$ THEN RIGHT=RIGHT+1:
3040 PROCPUTSCORE 3040 PROCPUTSCORE
3050 IF E$<>I$ THEN 3100 3050 IF E$<>I$ THEN 3100
3060 PRINTTAB(7,15)"THAT IS CORRECT" 3060 PRINTTAB(7,15)"THAT IS CORRECT"
3070 PRINTTAB(6,17)"You took ";TIM/100;" seconds." 3070 PRINTTAB(6,17)"You took ";TIM/100;" seconds."
3080 PROCWAIT(1.5):ENDPROC 3080 PROCWAIT(1.5):ENDPROC
3100 REM** USER MADE AN ERROR 3100 REM** USER MADE AN ERROR
3110 IA=ASC(I$):EA=ASC(E$) 3110 IA=ASC(I$):EA=ASC(E$)
3120 IF NOT(((E$="O"ORE$="o")ANDI$="0")OR(E$="0"AND(I$="O"ORI$="o"))) THEN 3200 3120 IF NOT(((E$="O"ORE$="o")ANDI$="0")OR(E$="0"AND(I$="O"ORI$="o"))) THEN 3200
3130 REMCONFUSED 0 WITH O OR o 3130 REMCONFUSED 0 WITH O OR o
3140 PROCWAIT(2):PROCKBD 3140 PROCWAIT(2):PROCKBD
3150 IF E$="0" THEN E$=I$ 3150 IF E$="0" THEN E$=I$
3160 PRINTTAB(0,18)"You have confused the letter """E$""" with" 3160 PRINTTAB(0,18)"You have confused the letter """E$""" with"
3170 PRINT"the digit zero, ""0""." 3170 PRINT"the digit zero, ""0""."
3180 PROCFL0:PROCFLO:PROCSPACE:ENDPROC 3180 PROCFL0:PROCFLO:PROCSPACE:ENDPROC
3200 IF NOT ((E$="1"ANDI$="l")OR(E$="l"ANDI$="1")) THEN 3300 3200 IF NOT ((E$="1"ANDI$="l")OR(E$="l"ANDI$="1")) THEN 3300
3210 PROCWAIT(2):PROCKBD 3210 PROCWAIT(2):PROCKBD
3220 PRINTTAB(0,15)"You have confused lower case ""L"" with" 3220 PRINTTAB(0,15)"You have confused lower case ""L"" with"
3230 PRINT"the digit ""1""." 3230 PRINT"the digit ""1""."
3240 PROCFL1:PROCFLL:PROCSPACE:ENDPROC 3240 PROCFL1:PROCFLL:PROCSPACE:ENDPROC
3300 IF NOT ((E$="I"ANDI$="1")OR(E$="1"ANDI$="I")) THEN 3350 3300 IF NOT ((E$="I"ANDI$="1")OR(E$="1"ANDI$="I")) THEN 3350
3310 PROCWAIT(2):PROCKBD 3310 PROCWAIT(2):PROCKBD
3320 PRINTTAB(0,18)"You have confused the letter ""I"" with" 3320 PRINTTAB(0,18)"You have confused the letter ""I"" with"
3330 PRINT"the digit" """1""." 3330 PRINT"the digit" """1""."
3340 PROCFL1:PROCFLI:PROCSPACE:ENDPROC 3340 PROCFL1:PROCFLI:PROCSPACE:ENDPROC
3350 IF NOT ((E$="_"ANDI$="-")OR(E$="-"ANDI$="_")) THEN 3400 3350 IF NOT ((E$="_"ANDI$="-")OR(E$="-"ANDI$="_")) THEN 3400
3355 PROCWAIT(2):PROCKBD 3355 PROCWAIT(2):PROCKBD
3360 PRINTTAB(0,18)"You have confused the minus sign" 3360 PRINTTAB(0,18)"You have confused the minus sign"
3370 PRINT"(below =), with the underscore symbol" 3370 PRINT"(below =), with the underscore symbol"
3380 PRINT"(below `)." 3380 PRINT"(below `)."
3390 PRINTTAB(29,4);FL$;"_";ST$;TAB(24,3);FL$;"-";ST$:PROCSPACE:ENDPROC 3390 PRINTTAB(29,4);FL$;"_";ST$;TAB(24,3);FL$;"-";ST$:PROCSPACE:ENDPROC
3400 X=1 3400 X=1
3410 IF IA>=K(X) THEN X=X+1:GOTO3410 3410 IF IA>=K(X) THEN X=X+1:GOTO3410
3420 SHCON=(EA-IA=D(X)) 3420 SHCON=(EA-IA=D(X))
3430 TYPE=T(X) 3430 TYPE=T(X)
3500 REM "PART" SPECIFIC CHECKS 3500 REM "PART" SPECIFIC CHECKS
3510 ON PART GOTO 3520,3550,3600,3650,3720 3510 ON PART GOTO 3520,3550,3600,3650,3720
3520 IF TYPE=2 THEN 3900:REM WRONG LETTER 3520 IF TYPE=2 THEN 3900:REM WRONG LETTER
3530 PRINTTAB(0,15)"That is not a capital letter.":GOTO3800 3530 PRINTTAB(0,15)"That is not a capital letter.":GOTO3800
3550 REM PART 2 3550 REM PART 2
3560 IF TYPE=2 OR TYPE=4 THEN3900:REM WRONG LETTER 3560 IF TYPE=2 OR TYPE=4 THEN3900:REM WRONG LETTER
3570 PRINTTAB(0,15)"That is not an upper case character.":GOTO3800 3570 PRINTTAB(0,15)"That is not an upper case character.":GOTO3800
3600 REM** PART 3 3600 REM** PART 3
3610 IF TYPE=2 OR TYPE=3 THEN 3900 3610 IF TYPE=2 OR TYPE=3 THEN 3900
3620 PRINTTAB(0,15)"That is not a capital letter or"'"lower case symbol." 3620 PRINTTAB(0,15)"That is not a capital letter or"'"lower case symbol."
3630 GOTO3800 3630 GOTO3800
3650 REM** PART 4:CHECK FOR CASE CONFUSION 3650 REM** PART 4:CHECK FOR CASE CONFUSION
3660 IF TYPE=1 THEN 3530 3660 IF TYPE=1 THEN 3530
3670 IF SHCON=0 THEN 3900 3670 IF SHCON=0 THEN 3900
3680 IF TYPE=4 THEN 3750 3680 IF TYPE=4 THEN 3750
3690 PRINTTAB(0,15)"You confused upper and lower case." 3690 PRINTTAB(0,15)"You confused upper and lower case."
3700 PRINT"Use"SH$"to obtain the top set" 3700 PRINT"Use"SH$"to obtain the top set"
3710 PRINT"of symbols.":GOTO3800 3710 PRINT"of symbols.":GOTO3800
3720 REM** PART 5:CHECK CASE CONFUSION 3720 REM** PART 5:CHECK CASE CONFUSION
3730 IF SHCON=0 THEN 3900 3730 IF SHCON=0 THEN 3900
3750 PRINTTAB(0,15)"You have not selected the correct case" 3750 PRINTTAB(0,15)"You have not selected the correct case"
3760 PRINT"for your response. The top symbols and" 3760 PRINT"for your response. The top symbols and"
3770 PRINT"capital letters are produced when you"'"use"SH$"." 3770 PRINT"capital letters are produced when you"'"use"SH$"."
3800 IF PART=5 THENPRINT"Check that the red lights are"'"all off.":GOTO3850 3800 IF PART=5 THENPRINT"Check that the red lights are"'"all off.":GOTO3850
3810 PRINT'"Make sure that the red lights"'"are "; 3810 PRINT'"Make sure that the red lights"'"are ";
3820 FOR X=1 TO 3:IF LED(X,PART)=1 THEN PRINT"ON" ; ELSE PRINT"OFF"; 3820 FOR X=1 TO 3:IF LED(X,PART)=1 THEN PRINT"ON" ; ELSE PRINT"OFF";
3830 IF X<3 THEN PRINT","; 3830 IF X<3 THEN PRINT",";
3840 NEXTX:PRINT"." 3840 NEXTX:PRINT"."
3850 PROCSPACE:ENDPROC 3850 PROCSPACE:ENDPROC
3900 PRINTTAB(6,15)"THAT IS INCORRECT":PROCSPACE:ENDPROC 3900 PRINTTAB(6,15)"THAT IS INCORRECT":PROCSPACE:ENDPROC
5000 DEFPROCKBD 5000 DEFPROCKBD
5010 LOCALI,K$,L$,B$,X$,Y$ 5010 LOCALI,K$,L$,B$,X$,Y$
5020 K$=CHR$(&FC):L$=K$+K$:B$=CHR$(&FF):Y$=CHR$(&95)+K$:X$=CHR$(&85)+B$ 5020 K$=CHR$(&FC):L$=K$+K$:B$=CHR$(&FF):Y$=CHR$(&95)+K$:X$=CHR$(&85)+B$
5030 CLS:PRINTTAB(7,2); 5030 CLS:PRINTTAB(7,2);
5040 FOR I=0 TO 9:PRINTR$;B$;:NEXT 5040 FOR I=0 TO 9:PRINTR$;B$;:NEXT
5050 PRINTC$;B$;TAB(2,3);C$;B$; 5050 PRINTC$;B$;TAB(2,3);C$;B$;
5060 FOR I=1 TO 9:PRINTST$;I;:NEXT 5060 FOR I=1 TO 9:PRINTST$;I;:NEXT
5070 PRINT" 0 - ";B$;" ";B$;X$;X$ 5070 PRINT" 0 - ";B$;" ";B$;X$;X$
5080 PRINT" ";G$;L$;C$; 5080 PRINT" ";G$;L$;C$;
5090 PRINT"Q W E R T Y U I O P @ ";B$;" _"; 5090 PRINT"Q W E R T Y U I O P @ ";B$;" _";
5100 PRINTX$;X$ 5100 PRINTX$;X$
5110 PRINTG$;" ";K$;ST$;K$;C$;"A S D F G H J K L ; : ";B$; 5110 PRINTG$;" ";K$;ST$;K$;C$;"A S D F G H J K L ; : ";B$;
5120 PRINTY$;K$ 5120 PRINTY$;K$
5130 PRINTG$;" ";K$;ST$;L$;ST$;"Z";C$; 5130 PRINTG$;" ";K$;ST$;L$;ST$;"Z";C$;
5140 PRINT"X C V B N M , . /"; 5140 PRINT"X C V B N M , . /";
5150 PRINTG$;L$;G$;K$;Y$ 5150 PRINTG$;L$;G$;K$;Y$
5160 PRINT" ";C$;CHR$(&9D);CHR$(&83);" Space Bar ";CHR$(&9C) 5160 PRINT" ";C$;CHR$(&9D);CHR$(&83);" Space Bar ";CHR$(&9C)
5200 IF PART=0 THEN 5299 5200 IF PART=0 THEN 5299
5210 PRINT" ";:FOR I=1 TO 3 5210 PRINT" ";:FOR I=1 TO 3
5220 IF LED(I,PART)=1 THEN PRINTR$; ELSE PRINTW$; 5220 IF LED(I,PART)=1 THEN PRINTR$; ELSE PRINTW$;
5230 PRINT"o";:NEXT:PRINTW$ 5230 PRINT"o";:NEXT:PRINTW$
5240 PRINT'" ^ ^ ^ - Lights: o = OFF" 5240 PRINT'" ^ ^ ^ - Lights: o = OFF"
5250 PRINTTAB(17);R$;"o";W$;"= ON" 5250 PRINTTAB(17);R$;"o";W$;"= ON"
5260 PRINTTAB(15,13);"PART ";PART' 5260 PRINTTAB(15,13);"PART ";PART'
5299 ENDPROC 5299 ENDPROC
5300 DEFPROCFL0 5300 DEFPROCFL0
5310 PRINTTAB(22,3);FL$"0"ST$;:ENDPROC 5310 PRINTTAB(22,3);FL$"0"ST$;:ENDPROC
5320 DEFPROCFL1 5320 DEFPROCFL1
5330 PRINTTAB(4,3);FL$"1"ST$;:ENDPROC 5330 PRINTTAB(4,3);FL$"1"ST$;:ENDPROC
5340 DEFPROCFLO 5340 DEFPROCFLO
5350 PRINTTAB(21,4);FL$"O"ST$;:ENDPROC 5350 PRINTTAB(21,4);FL$"O"ST$;:ENDPROC
5360 DEFPROCFLL 5360 DEFPROCFLL
5370 PRINTTAB(22,5);FL$"L"ST$;:ENDPROC 5370 PRINTTAB(22,5);FL$"L"ST$;:ENDPROC
5380 DEFPROCFLI 5380 DEFPROCFLI
5390 PRINTTAB(19,4);FL$"I"ST$;:ENDPROC 5390 PRINTTAB(19,4);FL$"I"ST$;:ENDPROC
5500 DEFPROCCL:REM CAPS LOCK 5500 DEFPROCCL:REM CAPS LOCK
5510 PRINTTAB(1,5);FL$ 5510 PRINTTAB(1,5);FL$
5599 ENDPROC 5599 ENDPROC
5600 DEFPROCSL:REM SHIFT LOCK 5600 DEFPROCSL:REM SHIFT LOCK
5610 PRINTTAB(1,6);FL$; 5610 PRINTTAB(1,6);FL$;
5699 ENDPROC 5699 ENDPROC
5700 DEFPROCSH:REM SHIFT 5700 DEFPROCSH:REM SHIFT
5710 PRINTTAB(4,6);FL$; 5710 PRINTTAB(4,6);FL$;
5799 ENDPROC 5799 ENDPROC
5800 DEFPROCESC:REM ESCAPE 5800 DEFPROCESC:REM ESCAPE
5810 PRINTTAB(1,3);FL$ 5810 PRINTTAB(1,3);FL$
5899 ENDPROC 5899 ENDPROC
7000 DEFPROCCLEAR 7000 DEFPROCCLEAR
7010 LOCALK 7010 LOCALK
7020 FOR K=13 TO 22:PRINTTAB(0,K);SPC(40):NEXT 7020 FOR K=13 TO 22:PRINTTAB(0,K);SPC(40):NEXT
7030 PRINTTAB(0,13); 7030 PRINTTAB(0,13);
7099 ENDPROC 7099 ENDPROC
7100 DEFPROCPUTSCORE 7100 DEFPROCPUTSCORE
7110 PRINTTAB(5,1)"Score so far: ";RIGHT;" out of ";TESTS 7110 PRINTTAB(5,1)"Score so far: ";RIGHT;" out of ";TESTS
7120 PRINTTAB(3,3)"Average time taken: "; 7120 PRINTTAB(3,3)"Average time taken: ";
7130 IF TESTS=0 THEN PRINT;0; ELSE PRINT;INT(TTIM/TESTS)/100; 7130 IF TESTS=0 THEN PRINT;0; ELSE PRINT;INT(TTIM/TESTS)/100;
7140 PRINT" seconds " 7140 PRINT" seconds "
7199 ENDPROC 7199 ENDPROC
7200 DEFFNGENE:REM CHARACTER GENERATOR 7200 DEFFNGENE:REM CHARACTER GENERATOR
7210 ON PART GOTO 7230,7260,7310,7360,7390 7210 ON PART GOTO 7230,7260,7310,7360,7390
7220 REM** PART 1 - U/C LETTERS 7220 REM** PART 1 - U/C LETTERS
7230 =RND(26)+64 7230 =RND(26)+64
7240 REM** PART 2 - U/C LETTERS + U/C SYMBOLS 7240 REM** PART 2 - U/C LETTERS + U/C SYMBOLS
7260 R=RND(16):IF R=16 THEN =96 7260 R=RND(16):IF R=16 THEN =96
7270 IF R<12 THEN =R+32 7270 IF R<12 THEN =R+32
7280 =RND(4)+59 7280 =RND(4)+59
7300 REM** PART 3 - U/C LETTERS,L/C SYMBOLS 7300 REM** PART 3 - U/C LETTERS,L/C SYMBOLS
7310 IF CHAR=2 THEN=45:FORCE - 7310 IF CHAR=2 THEN=45:FORCE -
7315 IF RND(3)=1 THEN 7230 7315 IF RND(3)=1 THEN 7230
7320 R=RND(18):IF R=18 THEN =64 7320 R=RND(18):IF R=18 THEN =64
7330 IF R=17 THEN =95 7330 IF R=17 THEN =95
7340 =R+43 7340 =R+43
7350 REM** PART 4 - U/C LETTERS + ANY SYMBOLS 7350 REM** PART 4 - U/C LETTERS + ANY SYMBOLS
7360 IF CHAR=4 THEN =79:REM FORCE O 7360 IF CHAR=4 THEN =79:REM FORCE O
7370 ON RND(3) GOTO 7230,7260,7320 7370 ON RND(3) GOTO 7230,7260,7320
7380 REMT** PART 5 - FULL KBD 7380 REMT** PART 5 - FULL KBD
7390 IF CHAR=7 THEN =108:REMFORCE l 7390 IF CHAR=7 THEN =108:REMFORCE l
7400 IF RND(3)>1 THEN 7370 7400 IF RND(3)>1 THEN 7370
7410 =96+RND(26) 7410 =96+RND(26)
7499 REM END OF FNGENE 7499 REM END OF FNGENE
8000 DEFPROCDBL(X$,X,Y) 8000 DEFPROCDBL(X$,X,Y)
8010 PRINTTAB(X-1,Y);CHR$(141);X$ 8010 PRINTTAB(X-1,Y);CHR$(141);X$
8020 PRINTTAB(X-1,Y+1);CHR$(141);X$ 8020 PRINTTAB(X-1,Y+1);CHR$(141);X$
8099 ENDPROC 8099 ENDPROC
8100 DEFPROCWAIT(X) 8100 DEFPROCWAIT(X)
8110 LOCAL Z 8110 LOCAL Z
8120 Z=TIME 8120 Z=TIME
8130 REPEAT UNTIL TIME-Z>X*100 8130 REPEAT UNTIL TIME-Z>X*100
8199 ENDPROC 8199 ENDPROC
8200 DEFPROCSPACE 8200 DEFPROCSPACE
8220 PRINTTAB(3,22);"Press the SPACE BAR to continue";:PROCKCL 8220 PRINTTAB(3,22);"Press the SPACE BAR to continue";:PROCKCL
8240 REPEAT UNTIL GET$=" " 8240 REPEAT UNTIL GET$=" "
8299 ENDPROC 8299 ENDPROC
8300 DEFPROCTITLEPAGE 8300 DEFPROCTITLEPAGE
8310 CLS:PROCDBL("KEYBOARD",14,8):PROCDBL("FAMILIARITY",13,11) 8310 CLS:PROCDBL("KEYBOARD",14,8):PROCDBL("FAMILIARITY",13,11)
8320 PROCOFF:N%=INKEY(500) 8320 PROCOFF:N%=INKEY(500)
8399 ENDPROC 8399 ENDPROC
8800 DEFPROCKCL 8800 DEFPROCKCL
8810 REPEAT UNTIL INKEY(0)=-1 8810 REPEAT UNTIL INKEY(0)=-1
8899 ENDPROC 8899 ENDPROC
8900 DEFPROCOFF 8900 DEFPROCOFF
8910 VDU23;8202;0;0;0;:ENDPROC 8910 VDU23;8202;0;0;0;:ENDPROC
8950 DEFPROCON 8950 DEFPROCON
8960 VDU23;29194;0;0;0;:ENDPROC 8960 VDU23;29194;0;0;0;:ENDPROC
9000 DEFPROCGPI(F2,ML):REM General Purpose Input Routine 9000 DEFPROCGPI(F2,ML):REM General Purpose Input Routine
9010 LOCALB,B$ 9010 LOCALB,B$
9020 A$="" 9020 A$=""
9030 PRINTSTRING$(ML," ");STRING$(ML+1,CHR$(8));CHR$(&87);:PROCON:PROCKCL 9030 PRINTSTRING$(ML," ");STRING$(ML+1,CHR$(8));CHR$(&87);:PROCON:PROCKCL
9040 B$=GET$:B=ASC(B$):IF B=13 THEN 9190 9040 B$=GET$:B=ASC(B$):IF B=13 THEN 9190
9050 IF B=127 AND A$="" THEN 9040 9050 IF B=127 AND A$="" THEN 9040
9060 IF B=127 THEN A$=LEFT$(A$,LEN(A$)-1):PRINTB$;:GOTO9040 9060 IF B=127 THEN A$=LEFT$(A$,LEN(A$)-1):PRINTB$;:GOTO9040
9070 IF LEN(A$)=ML OR B<32 OR B>126 THEN 9170 9070 IF LEN(A$)=ML OR B<32 OR B>126 THEN 9170
9080 IF F2=0 OR B=32 OR (B>=48 AND B<=57) THEN 9180 9080 IF F2=0 OR B=32 OR (B>=48 AND B<=57) THEN 9180
9170 VDU7:GOTO9040 9170 VDU7:GOTO9040
9180 PRINTB$;:A$=A$+B$:GOTO9040 9180 PRINTB$;:A$=A$+B$:GOTO9040
9190 PROCOFF 9190 PROCOFF
9199 ENDPROC 9199 ENDPROC
9200 DEFPROCYESORNO 9200 DEFPROCYESORNO
9210 LOCALB$ 9210 LOCALB$
9220 PROCGPI(0,3) 9220 PROCGPI(0,3)
9230 B$=LEFT$(A$,1) 9230 B$=LEFT$(A$,1)
9240 Y%=-1 9240 Y%=-1
9250 IF B$="Y" OR B$="y" THEN Y%=1 9250 IF B$="Y" OR B$="y" THEN Y%=1
9260 IF B$="N" OR B$="n" THEN Y%=0 9260 IF B$="N" OR B$="n" THEN Y%=0
9299 ENDPROC 9299 ENDPROC