BAUD RATE (eg speed): 110,300,600,1200,2400,4800, or 9600
DATA BITS: 7 or 8
PARITY: Odd, Even or None
TWO STOP BITS: used or not
NULLS: used or not
CHECK PARITY: performed or not
ECHO: on or off
CRLF: on or off
LF: on or off.
100 OPEN #1:"PIO.CRLF" 110 REM OR EQUIVALENT RS232 FILE NAME 120 PRINT #1:CHR$(27);"A";CHR$(8) 130 FOR [A=1 TO 32 140 PRINT #1:CHR$(27);"K";CHR$(192);CHR$(0) 150 FOR [B=24 TO 1 STEP -1 160 CALL GCHAR([B,[A,[CHAR) 170 IF [CHAR<33 THEN 300 180 CALL CHARPAT([CHAR,DEF$) 190 IF DEF$="0000000000000000" THEN 300 200 FOR [SEG=16 TO 2 STEP -2 210 [HEX=ASC(SEG$(DEF$,[SEG,1)) 220 GOSUB 430 230 [PRINTDEF=[HEX 240 [HEX=ASC(SEG$(DEF$,[SEG-1,1)) 250 GOSUB 430 260 [PRINTDEF=[PRINTDEF+[HEX*16 270 PRINT #1:CHR$([PRINTDEF); 280 NEXT [SEG 290 GOTO 340 300 FOR []=1 TO 7 310 PRINT #1:CHR$(0); 320 NEXT [] 330 PRINT #1:CHR$(0) 340 NEXT [B 350 PRINT #1:CHR$(13);CHR$(10) 360 NEXT [A 370 PRINT #1:CHR$(27);"@" 380 PRINT #1:CHR$(7) 390 CLOSE #1 400 REM NOW GO WHERE YOU WISH 410 REM USING RETURN OR GO TO AS APPROPRIATE 420 STOP 430 [HEX=[HEX-48+([HEX>64)*7 440 RETURN 450 END
GLOSSARY ARRAY. A collection of variables referenced by a subscripted number. ASCII. 'American Standard Code for Information Interchange' - standard code numbers for the characters used by the computer. BASIC. 'Beginners All-purpose Symbolic Instruction Code'. An easy to use and widely used type of programming language. BAUD. 'Bits per second'- refers to the speed at which data is transferred to and from the computer. BINARY. Our normal numbering system is DIGITAL, and uses numbers 0 to 9. A BINARY system uses only numbers 0 and 1 ,or OFF and ON. The computer works internally with signals which are OFF or ON. BUG An error in a program, which causes incorrect or unwanted operation. BYTE. A group of 8 binary numbers (called BITS) used in computing to represent a character or command. Also used as a means of measuring a computers memory capacity. CONSTANT Used to describe a number or STIRNG, and distinct from a VARIABLE. CURSOR A flashing character used by the computer to indicate that it is waiting for an input. DISK A mass storage device used to store programs and data files. FILE A collection of data records. HEXADECIMAL A numbering system with base 16. Instead of using number 0 to 9, it uses numbers 0 to 15, but letters A to F are used instead of 10 to 15. LOOP A program line, or lines, which are performed a specified number of times. PROGRAM A series of commands which tell the computer what to do. RAM 'Random Access Memory'.Tempory storage in the computer, used for your programs. The contents are not retained when the console is switched off. RECORD A collection of data elements. A group of records form a FILE. RESERVED WORD A word used by the computer as a command or function. Such words cannot be used as variable names. ROM Read Only Memory. Permanent memory which retains its contents when the console is switched off. Contains the operating system of the computer. RUN An instruction to the computer to execute a program in its memory. SCROLL Movement of the screen display by one line upwards. SOFTWARE A name given to computer PROGRAMS. STRING A series of letters, numbers or symbols, treated as a single unit. A single number may be treated as a number OR as a string but cannot be both at once. 2 is a number. "2" is a string. VARIABLE A name or label which has a value which may be altered during a program.
A = Key A only
FA = FCTN and A together.
CA = CTRL and A together.
SA = SHIFT and A together.
CODE: KEYS: CODE: KEYS: CODE: KEYS:
0 C, 48-57 0-9 187 C/
1 CA 58 S; 188 F0
2 CB 59 ; 189 F;
3 CC 60 S, 190 FB
4 CD 61 = 191 FH
5 CE 62 S. 192 FJ
6 CF 63 FI 193 FK
7 CG 64 S2 194 FL
8 CH 65-90 A-Z 195 FM
9 CI 91 FR 196 FN
10 CJ 92 FZ 197 na
11 CK 93 FT 198 FY
12 CL 94 S6 199- na
13 CM 95 FU
14 CN 96 FC
15 CO 97-122 a-z
16 CP 123 FF To use:
17 CQ 124 FA ENTER PASCAL
18 CR 125 FG MODE WITH
19 CS 126 FW CALL KEY(4...
20 CT 127 FV
21 CU 128 na AFTER THAT
22 CV 129 F7 USE THE KEYS
23 CW 130 na INDICATED AND
24 CX 131 F1 THAT
25 CY 132 F2 CHARACTER WILL
26 CZ 133 na BE PRINTED:
27 C. 134 F8 IT MAY NOT BE
28 C; 135 F3 VISIBLE IF YOU
29 C= 136 FS HAVE NOT DEFINED
30 C8 137 FD IT.
31 C9 138 FX
32 SPACE 139 FE
33 S1 140 F6
34 FP 141 na
35 S3 142 F5
36 S4 143 F9
37 S5 144-176 na
38 S7 177 C1
39 FO 178 C2
40 S9 179 C3
41 S0 180 C4
42 S8 181 C5
43 S= 182 C6
44 , 183 C7
45 S/ 184 F,
46 . 185 F.
47 / 186 F/
CODE; MEANING: CODE: MEANING:
129 ELSE 193 +
130 :: (Ex Bas Separator) 194 -
131 ! (Ex Bas tail rem) 195 *
132 IF 196 /
133 GO 197 ^
134 GOTO 198 unknown
135 ?? 199 'string follows'
136 ?? 200 'number follows'
ALSO used with CALLs.
137 DEF 201 LINE NUMBER FOLLOWS
138 DIM 202 EOF
139 END 203 ABS
140 FOR 204 ATN
141 LET 205 COS
142 BREAK 206 EXP
143 UNBREAK 207 INT
144 TRACE 208 LOG
145 UNTRACE 209 SGN
146 INPUT 210 SIN
147 DATA 211 SQR
148 RESTORE 212 TAN
149 RANDOMIZE 213 LEN
150 NEXT 214 CHR$
151 READ 215 RND
152 STOP 216 SEG$
153 DELETE 217 POS
154 REM 218 VAL
155 ON 219 STR$
156 PRINT 220 ASC
157 CALL 221 PI
158 OPTION 222 REC
159 OPEN 223 MAX
160 CLOSE 224 MIN
161 SUB 225 RPT$
162 DISPLAY 226-231 Not known
163 IMAGE 232 NUMERIC
164 IMAGE 233 DIGIT
165 ERROR 234 UALPHA
166 WARNING 235 SIZE
167 SUBEXIT 236 ALL
168 SUBEND 237 USING
169 RUN 238 BEEP
170 LINPUT 239 ERASE
171-175 Not known 240 AT
176 THEN 241 BASE
177 TO 242 Not known
178 STEP 243 VARIABLE
179 , 244 RELATIVE
180 ; 245 INTERNAL
181 : 246 SEQUENTIAL
182 ) 247 OUTPUT
183 ( 248 UPDATE
184 & 249 APPEND
185 Not known 250 FIXED
186 OR 251 PERMANENT
187 AND 252 TAB
188 XOR 253 # (for files)
189 NOT 254 VALIDATE
190 =
191 <
192 >
THE INFORMATION IN THIS BOOK IS FREE. It may be copied, distributed and/or modified under the conditions set down in the Design Science License published by Michael Stutz at http://dsl.org/copyleft/dsl.txt