SCRIPTPR.LST 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * SCRIPTPR.MOD - COMMS Toolkit script processor *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1988..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 IMPLEMENTATION MODULE ScriptProcessor;
  13. 12 IMPORT CommUtil,FIO,FTSupport,IO,Kermit,Lib,RS232,ScriptCompiler,Storage,
  14. 13 Str,Term,Timer,Window,WXModem,XModem,YModem;
  15. 14
  16. 15 CONST
  17. 16 StackSize = 40;
  18. 17
  19. 18 TYPE
  20. 19 StringPtr = POINTER TO String80;
  21. ***** ^ undeclared identifier
  22. 20
  23. 21 VAR
  24. 22 CPUFlag,
  25. 23 KbdWait,WaitForever : BOOLEAN;
  26. 24 IPC,SLnth,StackPtr : CARDINAL;
  27. 25 Stack : ARRAY[0..StackSize-1] OF CARDINAL;
  28. ***** ^ not supported yet
  29. ***** ^ not supported yet
  30. 26 SVar : ARRAY[0..9] OF String80; (* Script Variables *)
  31. ***** ^ not supported yet
  32. ***** ^ undeclared identifier
  33. 27
  34. 28 (*.............................................*)
  35. 29
  36. 30 PROCEDURE TerminateScript;
  37. 31 VAR
  38. 32 flag : ScriptFlags;
  39. ***** ^ undeclared identifier
  40. 33 BEGIN
  41. 34 IF ScriptState<>Off THEN
  42. ***** ^ undeclared identifier
  43. ***** ^ undeclared identifier
  44. 35 ScriptState := Off;
  45. ***** ^ undeclared identifier
  46. ***** ^ undeclared identifier
  47. 36 CommUtil.ScriptFile := '';
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. 37 CommUtil.StatusLine(CommUtil.script);
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. 38 END;
  56. 39 WhenProcessing := FALSE;
  57. ***** ^ undeclared identifier
  58. 40 FOR flag:=Linked TO WaitFor DO
  59. ***** ^ FOR needs integer variable and bounds
  60. ***** ^ undeclared identifier
  61. ***** ^ undeclared identifier
  62. 41 Flags[flag] := FALSE;
  63. ***** ^ undeclared identifier
  64. ***** ^ not supported yet
  65. 42 END;
  66. 43 END TerminateScript;
  67. ***** ^ not supported yet
  68. 44
  69. 45 (*.............................................*)
  70. 46
  71. 47 PROCEDURE InitScriptProcessor;
  72. 48 BEGIN
  73. 49 TerminateScript;
  74. ***** ^ not supported yet
  75. 50 END InitScriptProcessor;
  76. ***** ^ not supported yet
  77. 51
  78. 52 (*.............................................*)
  79. 53
  80. 54 PROCEDURE LoadScript(Filename:ARRAY OF CHAR):BOOLEAN;
  81. ***** ^ not supported yet
  82. 55 BEGIN
  83. 56 TerminateScript;
  84. ***** ^ not supported yet
  85. 57 Lib.Move(ADR(Filename),ADR(CommUtil.ScriptFile),81);
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. ***** ^ undeclared identifier
  89. ***** ^ not supported yet
  90. ***** ^ undeclared identifier
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. 58 IF ScriptCompiler.Compile(CommUtil.ScriptFile) THEN
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. 59 Lib.Fill(ADR(SVar),SIZE(SVar),0C);
  100. ***** ^ not supported yet
  101. ***** ^ not supported yet
  102. ***** ^ undeclared identifier
  103. ***** ^ not supported yet
  104. ***** ^ undeclared identifier
  105. ***** ^ not supported yet
  106. ***** ^ not supported yet
  107. 60 IPC := 0;
  108. 61 StackPtr:=0;
  109. 62 ScriptState := Running;
  110. ***** ^ undeclared identifier
  111. ***** ^ undeclared identifier
  112. 63 CommUtil.StatusLine(CommUtil.script);
  113. ***** ^ not supported yet
  114. ***** ^ not supported yet
  115. ***** ^ not supported yet
  116. ***** ^ not supported yet
  117. 64 RETURN TRUE;
  118. 65 ELSE
  119. 66 RETURN FALSE;
  120. 67 END;
  121. 68 END LoadScript;
  122. ***** ^ not supported yet
  123. 69
  124. 70 (*.............................................*)
  125. 71
  126. 72 PROCEDURE Push(w:CARDINAL);
  127. 73 BEGIN
  128. 74 IF StackPtr<StackSize THEN
  129. 75 Stack[StackPtr] := w;
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. 76 INC(StackPtr)
  133. ***** ^ undeclared identifier
  134. ***** ^ not supported yet
  135. 77 ELSE
  136. 78 IO.WrStr('Script Error: GOSUB Stack Overflow!!');
  137. ***** ^ not supported yet
  138. ***** ^ not supported yet
  139. ***** ^ not supported yet
  140. 79 IO.WrLn;
  141. ***** ^ not supported yet
  142. ***** ^ not supported yet
  143. 80 TerminateScript;
  144. ***** ^ not supported yet
  145. 81 END;
  146. 82 END Push;
  147. ***** ^ not supported yet
  148. 83
  149. 84 (*.............................................*)
  150. 85
  151. 86 PROCEDURE Pop(VAR w:CARDINAL);
  152. 87 BEGIN
  153. 88 IF StackPtr>0 THEN
  154. 89 DEC(StackPtr);
  155. ***** ^ undeclared identifier
  156. ***** ^ not supported yet
  157. 90 w := Stack[StackPtr];
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. 91 ELSE
  161. 92 IO.WrStr('Script Error: GOSUB Stack Underflow!!');
  162. ***** ^ not supported yet
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. 93 IO.WrLn;
  166. ***** ^ not supported yet
  167. ***** ^ not supported yet
  168. 94 TerminateScript;
  169. ***** ^ not supported yet
  170. 95 END;
  171. 96 END Pop;
  172. ***** ^ not supported yet
  173. 97
  174. 98 (*.............................................*)
  175. 99
  176. 100 PROCEDURE IFetch(VAR op:SHORTCARD);
  177. 101 BEGIN
  178. 102 op := ScriptCompiler.CodeBuff^[IPC];
  179. ***** ^ not supported yet
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. 103 INC(IPC);
  183. ***** ^ undeclared identifier
  184. ***** ^ not supported yet
  185. 104 END IFetch;
  186. ***** ^ not supported yet
  187. 105
  188. 106 (*.............................................*)
  189. 107
  190. 108 PROCEDURE IFetchW(VAR op:CARDINAL);
  191. 109 VAR
  192. 110 lsb,msb : SHORTCARD;
  193. 111 BEGIN
  194. 112 IFetch(lsb);
  195. ***** ^ not supported yet
  196. ***** ^ not supported yet
  197. 113 IFetch(msb);
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. 114 op := CARDINAL(lsb)+CARDINAL(msb)*100H;
  201. ***** ^ not supported yet
  202. ***** ^ not supported yet
  203. 115 END IFetchW;
  204. ***** ^ not supported yet
  205. 116
  206. 117 (*.............................................*)
  207. 118
  208. 119 PROCEDURE IFetchS(VAR p:StringPtr);
  209. 120 VAR
  210. 121 op : SHORTCARD;
  211. 122 BEGIN
  212. 123 IFetch(op);
  213. ***** ^ not supported yet
  214. ***** ^ not supported yet
  215. 124 IF op<>255 THEN
  216. 125 p := ADR(SVar[CARDINAL(op)]);
  217. ***** ^ not supported yet
  218. ***** ^ undeclared identifier
  219. ***** ^ not supported yet
  220. ***** ^ not supported yet
  221. 126 SLnth := Str.Length(p^);
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. ***** ^ not supported yet
  225. 127 ELSE
  226. 128 p := ADR(ScriptCompiler.CodeBuff^[IPC]);
  227. ***** ^ not supported yet
  228. ***** ^ undeclared identifier
  229. ***** ^ not supported yet
  230. ***** ^ not supported yet
  231. ***** ^ not supported yet
  232. 129 SLnth := Str.Length(p^);
  233. ***** ^ not supported yet
  234. ***** ^ not supported yet
  235. ***** ^ not supported yet
  236. 130 INC(IPC,SLnth+1);
  237. ***** ^ undeclared identifier
  238. ***** ^ not supported yet
  239. 131 END;
  240. 132 END IFetchS;
  241. ***** ^ not supported yet
  242. 133
  243. 134 (*.............................................*)
  244. 135
  245. 136 PROCEDURE SetSuccess(Setting:BOOLEAN);
  246. 137 BEGIN
  247. 138 Flags[Success] := Setting;
  248. ***** ^ undeclared identifier
  249. ***** ^ undeclared identifier
  250. 139 Flags[Failure] := NOT Setting;
  251. ***** ^ undeclared identifier
  252. ***** ^ undeclared identifier
  253. 140 END SetSuccess;
  254. ***** ^ not supported yet
  255. 141
  256. 142 (*.............................................*)
  257. 143
  258. 144 PROCEDURE Dos(CmdLine:ARRAY OF CHAR);
  259. ***** ^ not supported yet
  260. 145 BEGIN
  261. 146 SetSuccess(FALSE);
  262. ***** ^ not supported yet
  263. ***** ^ not supported yet
  264. 147 END Dos;
  265. ***** ^ not supported yet
  266. 148
  267. 149 (*.............................................*)
  268. 150
  269. 151 PROCEDURE Run(CmdLine:ARRAY OF CHAR);
  270. ***** ^ not supported yet
  271. 152 BEGIN
  272. 153 SetSuccess(FALSE);
  273. ***** ^ not supported yet
  274. ***** ^ not supported yet
  275. 154 END Run;
  276. ***** ^ not supported yet
  277. 155
  278. 156 (*.............................................*)
  279. 157
  280. 158 PROCEDURE ChangeEmulation(name:ARRAY OF CHAR);
  281. ***** ^ not supported yet
  282. 159 BEGIN
  283. 160 Str.Caps(name);
  284. ***** ^ not supported yet
  285. ***** ^ not supported yet
  286. ***** ^ not supported yet
  287. 161 IF Str.Compare(name,'VT100')=0 THEN
  288. ***** ^ not supported yet
  289. ***** ^ not supported yet
  290. ***** ^ not supported yet
  291. ***** ^ not supported yet
  292. 162 Term.EmulateVT100
  293. ***** ^ not supported yet
  294. ***** ^ not supported yet
  295. 163 ELSIF Str.Compare(name,'VT52')=0 THEN
  296. ***** ^ not supported yet
  297. ***** ^ not supported yet
  298. ***** ^ not supported yet
  299. ***** ^ not supported yet
  300. 164 Term.EmulateVT52
  301. ***** ^ not supported yet
  302. ***** ^ not supported yet
  303. 165 ELSIF Str.Compare(name,'ANSI')=0 THEN
  304. ***** ^ not supported yet
  305. ***** ^ not supported yet
  306. ***** ^ not supported yet
  307. ***** ^ not supported yet
  308. 166 Term.EmulateANSI
  309. ***** ^ not supported yet
  310. ***** ^ not supported yet
  311. 167 END;
  312. 168 END ChangeEmulation;
  313. ***** ^ not supported yet
  314. 169
  315. 170 (*.............................................*)
  316. 171
  317. 172 PROCEDURE RdStr(VAR s:ARRAY OF CHAR; Max:CARDINAL; Echo:BOOLEAN);
  318. ***** ^ not supported yet
  319. 173 VAR
  320. 174 ch : CHAR;
  321. 175 ptr : CARDINAL;
  322. 176 BEGIN
  323. 177 ptr:=0;
  324. 178 REPEAT
  325. 179 REPEAT
  326. 180 ch := IO.RdKey();
  327. ***** ^ not supported yet
  328. ***** ^ not supported yet
  329. ***** ^ not supported yet
  330. 181 UNTIL (ch=CHR(13)) OR ((ch=CHR(8)) AND (ptr>0)) OR ((ch>=' ') AND (ch<=CHR(126)) AND (ptr<Max));
  331. ***** ^ undeclared identifier
  332. ***** ^ not supported yet
  333. ***** ^ undeclared identifier
  334. ***** ^ not supported yet
  335. ***** ^ undeclared identifier
  336. ***** ^ not supported yet
  337. 182 IF ch=CHR(13) THEN
  338. ***** ^ undeclared identifier
  339. ***** ^ not supported yet
  340. 183 CommUtil.WrChar(ch);
  341. ***** ^ not supported yet
  342. ***** ^ not supported yet
  343. ***** ^ not supported yet
  344. 184 CommUtil.WrChar(CHR(10))
  345. ***** ^ not supported yet
  346. ***** ^ not supported yet
  347. ***** ^ undeclared identifier
  348. ***** ^ not supported yet
  349. 185 ELSIF ch=CHR(8) THEN
  350. ***** ^ undeclared identifier
  351. ***** ^ not supported yet
  352. 186 CommUtil.WrChar(ch);
  353. ***** ^ not supported yet
  354. ***** ^ not supported yet
  355. ***** ^ not supported yet
  356. 187 CommUtil.WrChar(' ');
  357. ***** ^ not supported yet
  358. ***** ^ not supported yet
  359. ***** ^ not supported yet
  360. 188 CommUtil.WrChar(ch);
  361. ***** ^ not supported yet
  362. ***** ^ not supported yet
  363. ***** ^ not supported yet
  364. 189 DEC(ptr);
  365. ***** ^ undeclared identifier
  366. ***** ^ not supported yet
  367. 190 ELSE
  368. 191 IF Echo THEN
  369. 192 CommUtil.WrChar(ch)
  370. ***** ^ not supported yet
  371. ***** ^ not supported yet
  372. ***** ^ not supported yet
  373. 193 ELSE
  374. 194 CommUtil.WrChar('*');
  375. ***** ^ not supported yet
  376. ***** ^ not supported yet
  377. ***** ^ not supported yet
  378. 195 END;
  379. 196 s[ptr]:=ch;
  380. ***** ^ not supported yet
  381. ***** ^ not supported yet
  382. 197 INC(ptr);
  383. ***** ^ undeclared identifier
  384. ***** ^ not supported yet
  385. 198 END;
  386. 199 UNTIL ch=CHR(13);
  387. ***** ^ undeclared identifier
  388. ***** ^ not supported yet
  389. 200 IF ptr<=HIGH(s) THEN
  390. ***** ^ undeclared identifier
  391. ***** ^ not supported yet
  392. 201 s[ptr]:=0C;
  393. ***** ^ not supported yet
  394. ***** ^ not supported yet
  395. 202 END;
  396. 203 END RdStr;
  397. ***** ^ not supported yet
  398. 204
  399. 205 (*....................................................*)
  400. 206
  401. 207 PROCEDURE FileTransfer(Download:BOOLEAN;Protocol:CARDINAL;FileSpec:ARRAY OF CHAR);
  402. ***** ^ not supported yet
  403. 208
  404. 209 (*. . . . . . . . . . . . . . . . . . . . . . . . . . .*)
  405. 210
  406. 211 PROCEDURE ReceiveFile():BOOLEAN;
  407. 212 BEGIN
  408. 213 CASE Protocol OF
  409. 214 0 : RETURN FALSE; (*Ascii - not allowed *) |
  410. 215 1 : RETURN Kermit.KermitReceive()=0; |
  411. ***** ^ not supported yet
  412. ***** ^ not supported yet
  413. ***** ^ not supported yet
  414. 216 2 : RETURN XModem.XModemReceive(FileSpec)=0; |
  415. ***** ^ not supported yet
  416. ***** ^ not supported yet
  417. ***** ^ not supported yet
  418. 217 3 : RETURN WXModem.WXModemReceive(FileSpec)=0; |
  419. ***** ^ not supported yet
  420. ***** ^ not supported yet
  421. ***** ^ not supported yet
  422. 218 4 : RETURN YModem.YModemReceive(FileSpec)=0; |
  423. ***** ^ not supported yet
  424. ***** ^ not supported yet
  425. ***** ^ not supported yet
  426. 219 5 : RETURN YModem.YModemBatchReceive()=0; |
  427. ***** ^ not supported yet
  428. ***** ^ not supported yet
  429. ***** ^ not supported yet
  430. 220 6 : RETURN FALSE; (*Spare*) |
  431. 221 END;
  432. 222 RETURN TRUE
  433. 223 END ReceiveFile;
  434. ***** ^ not supported yet
  435. 224
  436. 225 (*. . . . . . . . . . . . . . . . . . . . . . . . . . .*)
  437. 226
  438. 227 PROCEDURE SendFile():BOOLEAN;
  439. 228 BEGIN
  440. 229 CASE Protocol OF
  441. 230 0 : RETURN FTSupport.ASCIISend(FileSpec)=0; |
  442. ***** ^ not supported yet
  443. ***** ^ not supported yet
  444. ***** ^ not supported yet
  445. 231 1 : RETURN Kermit.KermitSend(FileSpec)=0; |
  446. ***** ^ not supported yet
  447. ***** ^ not supported yet
  448. ***** ^ not supported yet
  449. 232 2 : RETURN XModem.XModemSend(FileSpec)=0; |
  450. ***** ^ not supported yet
  451. ***** ^ not supported yet
  452. ***** ^ not supported yet
  453. 233 3 : RETURN WXModem.WXModemSend(FileSpec)=0; |
  454. ***** ^ not supported yet
  455. ***** ^ not supported yet
  456. ***** ^ not supported yet
  457. 234 4 : RETURN YModem.YModemSend(FileSpec)=0; |
  458. ***** ^ not supported yet
  459. ***** ^ not supported yet
  460. ***** ^ not supported yet
  461. 235 5 : RETURN YModem.YModemBatchSend(FileSpec)=0; |
  462. ***** ^ not supported yet
  463. ***** ^ not supported yet
  464. ***** ^ not supported yet
  465. 236 6 : RETURN FALSE; |
  466. 237 END;
  467. 238 RETURN TRUE
  468. 239 END SendFile;
  469. ***** ^ not supported yet
  470. 240
  471. 241 (*. . . . . . . . . . . . . . . . . . . . . . . . . . .*)
  472. 242
  473. 243 BEGIN (* FileTransfer *)
  474. 244 IF Download THEN
  475. 245 SetSuccess(ReceiveFile());
  476. ***** ^ not supported yet
  477. ***** ^ not supported yet
  478. ***** ^ not supported yet
  479. 246 ELSE
  480. 247 SetSuccess(SendFile());
  481. ***** ^ not supported yet
  482. ***** ^ not supported yet
  483. ***** ^ not supported yet
  484. 248 END;
  485. 249 END FileTransfer;
  486. ***** ^ not supported yet
  487. 250
  488. 251 (*....................................................*)
  489. 252
  490. 253 PROCEDURE Value(VAR s:ARRAY OF CHAR):CARDINAL;
  491. ***** ^ not supported yet
  492. 254 VAR
  493. 255 i,x : CARDINAL;
  494. 256 c : CHAR;
  495. 257 BEGIN
  496. 258 x := 0;
  497. 259 FOR i:=0 TO HIGH(s) DO
  498. ***** ^ undeclared identifier
  499. ***** ^ not supported yet
  500. 260 c := s[i];
  501. ***** ^ not supported yet
  502. ***** ^ not supported yet
  503. 261 IF c=0C THEN
  504. 262 RETURN x
  505. 263 ELSIF (c>='0') AND (c<='9') THEN
  506. 264 x := x*10+ORD(c)-48;
  507. ***** ^ undeclared identifier
  508. ***** ^ not supported yet
  509. 265 END;
  510. 266 END;
  511. 267 RETURN x;
  512. 268 END Value;
  513. ***** ^ not supported yet
  514. 269
  515. 270 (*..............................................*)
  516. 271
  517. 272 PROCEDURE Hangup;
  518. 273 BEGIN
  519. 274 RS232.UnInstall;
  520. ***** ^ not supported yet
  521. ***** ^ not supported yet
  522. 275 Lib.Delay(500);
  523. ***** ^ not supported yet
  524. ***** ^ not supported yet
  525. ***** ^ not supported yet
  526. 276 RS232.Install;
  527. ***** ^ not supported yet
  528. ***** ^ not supported yet
  529. 277 SetSuccess(TRUE);
  530. ***** ^ not supported yet
  531. ***** ^ not supported yet
  532. 278 CommUtil.StatusLine(CommUtil.carrier);
  533. ***** ^ not supported yet
  534. ***** ^ not supported yet
  535. ***** ^ not supported yet
  536. ***** ^ not supported yet
  537. 279 END Hangup;
  538. ***** ^ not supported yet
  539. 280
  540. 281 (*..............................................*)
  541. 282
  542. 283 PROCEDURE RFlush;
  543. 284 VAR
  544. 285 c : CHAR;
  545. 286 BEGIN
  546. 287 WHILE RS232.SerialRead(c,0) DO
  547. ***** ^ not supported yet
  548. ***** ^ not supported yet
  549. ***** ^ not supported yet
  550. 288 (* flush *)
  551. 289 END;
  552. 290 END RFlush;
  553. ***** ^ not supported yet
  554. 291
  555. 292 (*..............................................*)
  556. 293
  557. 294 PROCEDURE NextInstruction;
  558. 295 VAR
  559. 296 c : CHAR;
  560. 297 op : SHORTCARD;
  561. 298 i,temp,opw : CARDINAL;
  562. 299 sp,sp2 : StringPtr;
  563. ***** ^ not supported yet
  564. 300 BEGIN
  565. 301 Flags[Connected] := RS232.CarrierDetect();
  566. ***** ^ undeclared identifier
  567. ***** ^ undeclared identifier
  568. ***** ^ not supported yet
  569. ***** ^ not supported yet
  570. ***** ^ not supported yet
  571. 302 IFetch(op);
  572. ***** ^ not supported yet
  573. ***** ^ not supported yet
  574. 303 CASE op OF
  575. 304 0 : (*Alarm*)
  576. 305 IFetch(op);
  577. ***** ^ not supported yet
  578. ***** ^ not supported yet
  579. 306 temp := CARDINAL(op)*2;
  580. ***** ^ not supported yet
  581. 307 WHILE temp>0 DO
  582. 308 CommUtil.WrChar(7C);
  583. ***** ^ not supported yet
  584. ***** ^ not supported yet
  585. ***** ^ not supported yet
  586. 309 Lib.Delay(500);
  587. ***** ^ not supported yet
  588. ***** ^ not supported yet
  589. ***** ^ not supported yet
  590. 310 DEC(temp);
  591. ***** ^ undeclared identifier
  592. ***** ^ not supported yet
  593. 311 END; |
  594. 312 1 : (*Assign*)
  595. 313 IFetch(op);
  596. ***** ^ not supported yet
  597. ***** ^ not supported yet
  598. 314 i:=CARDINAL(op);
  599. ***** ^ not supported yet
  600. 315 IFetchS(sp);
  601. ***** ^ not supported yet
  602. ***** ^ not supported yet
  603. 316 Lib.Move(sp,ADR(SVar[i]),SLnth+1); |
  604. ***** ^ not supported yet
  605. ***** ^ not supported yet
  606. ***** ^ not supported yet
  607. ***** ^ undeclared identifier
  608. ***** ^ not supported yet
  609. ***** ^ not supported yet
  610. ***** ^ not supported yet
  611. 317 3 : (* Unconditional Jump *)
  612. 318 IFetchW(opw);
  613. ***** ^ not supported yet
  614. ***** ^ not supported yet
  615. 319 IPC := opw; |
  616. 320 6 : (* Clear Screen using default colours *)
  617. 321 Term.ClearScreen; |
  618. ***** ^ not supported yet
  619. ***** ^ not supported yet
  620. 322 7 : (* Clear Screen using new colours *)
  621. 323 IFetch(op);
  622. ***** ^ not supported yet
  623. ***** ^ not supported yet
  624. 324 Window.TextColor(Window.Color(op MOD 16));
  625. ***** ^ not supported yet
  626. ***** ^ not supported yet
  627. ***** ^ not supported yet
  628. ***** ^ not supported yet
  629. ***** ^ not supported yet
  630. 325 Window.TextBackground(Window.Color(op DIV 16));
  631. ***** ^ not supported yet
  632. ***** ^ not supported yet
  633. ***** ^ not supported yet
  634. ***** ^ not supported yet
  635. ***** ^ not supported yet
  636. 326 Term.ClearScreen; |
  637. ***** ^ not supported yet
  638. ***** ^ not supported yet
  639. 327 8 : (* Run program via DOS command interpreter *)
  640. 328 IFetch(op);
  641. ***** ^ not supported yet
  642. ***** ^ not supported yet
  643. 329 KbdWait := (op=1);
  644. 330 IFetchS(sp);
  645. ***** ^ not supported yet
  646. ***** ^ not supported yet
  647. 331 Dos(sp^); |
  648. ***** ^ not supported yet
  649. ***** ^ not supported yet
  650. 332 9 : (* Message *)
  651. 333 IFetchS(sp);
  652. ***** ^ not supported yet
  653. ***** ^ not supported yet
  654. 334 i:=0;
  655. 335 WHILE i<SLnth DO
  656. 336 c := sp^[i];
  657. ***** ^ not supported yet
  658. ***** ^ not supported yet
  659. 337 IF c='|' THEN
  660. 338 CommUtil.WrChar(CHR(13));
  661. ***** ^ not supported yet
  662. ***** ^ not supported yet
  663. ***** ^ undeclared identifier
  664. ***** ^ not supported yet
  665. 339 c:=CHR(10);
  666. ***** ^ undeclared identifier
  667. ***** ^ not supported yet
  668. 340 END;
  669. 341 CommUtil.WrChar(c);
  670. ***** ^ not supported yet
  671. ***** ^ not supported yet
  672. ***** ^ not supported yet
  673. 342 INC(i);
  674. ***** ^ undeclared identifier
  675. ***** ^ not supported yet
  676. 343 END; |
  677. 344 10 : (* Transmit string *)
  678. 345 IFetchS(sp);
  679. ***** ^ not supported yet
  680. ***** ^ not supported yet
  681. 346 Lib.Move(sp,ADR(TransmitString),SLnth+1);
  682. ***** ^ not supported yet
  683. ***** ^ not supported yet
  684. ***** ^ not supported yet
  685. ***** ^ undeclared identifier
  686. ***** ^ undeclared identifier
  687. ***** ^ not supported yet
  688. 347 TxPtr := 0;
  689. ***** ^ undeclared identifier
  690. 348 ScriptState := Transmitting; |
  691. ***** ^ undeclared identifier
  692. ***** ^ undeclared identifier
  693. 349 11 : (* WaitFor *)
  694. 350 IFetch(op);
  695. ***** ^ not supported yet
  696. ***** ^ not supported yet
  697. 351 IFetchS(sp);
  698. ***** ^ not supported yet
  699. ***** ^ not supported yet
  700. 352 Lib.Move(sp,ADR(WaitString),SLnth+1);
  701. ***** ^ not supported yet
  702. ***** ^ not supported yet
  703. ***** ^ not supported yet
  704. ***** ^ undeclared identifier
  705. ***** ^ undeclared identifier
  706. ***** ^ not supported yet
  707. 353 Timer.SetAppTimer(CARDINAL(op));
  708. ***** ^ not supported yet
  709. ***** ^ not supported yet
  710. ***** ^ not supported yet
  711. 354 WaitForever := (op=0);
  712. 355 ScriptState := Waiting; |
  713. ***** ^ undeclared identifier
  714. ***** ^ undeclared identifier
  715. 356 12..17 : (* Test a flag *)
  716. 357 CPUFlag := Flags[VAL(ScriptFlags,CARDINAL(op-12))];|
  717. ***** ^ undeclared identifier
  718. ***** ^ undeclared identifier
  719. ***** ^ undeclared identifier
  720. ***** ^ not supported yet
  721. 358 18 : (* Jump if test was TRUE *)
  722. 359 IFetchW(opw);
  723. ***** ^ not supported yet
  724. ***** ^ not supported yet
  725. 360 IF CPUFlag THEN
  726. 361 IPC:=opw;
  727. 362 END; |
  728. 363 19 : (* Jump if test was FALSE *)
  729. 364 IFetchW(opw);
  730. ***** ^ not supported yet
  731. ***** ^ not supported yet
  732. 365 IF NOT CPUFlag THEN
  733. 366 IPC:=opw;
  734. 367 END; |
  735. 368 20 : (* EXIT - terminate script *)
  736. 369 TerminateScript;
  737. ***** ^ not supported yet
  738. 370 IF ScriptCompiler.CodeBuff<>NIL THEN (* it shouldnt be!! *)
  739. ***** ^ not supported yet
  740. ***** ^ not supported yet
  741. 371 Storage.DEALLOCATE(ScriptCompiler.CodeBuff,ScriptCompiler.MaxCodeBytes);
  742. ***** ^ not supported yet
  743. ***** ^ not supported yet
  744. ***** ^ not supported yet
  745. ***** ^ not supported yet
  746. ***** ^ not supported yet
  747. ***** ^ not supported yet
  748. 372 END; |
  749. 373 21 : (* PAUSE *)
  750. 374 IFetch(op);
  751. ***** ^ not supported yet
  752. ***** ^ not supported yet
  753. 375 ScriptState := Pausing;
  754. ***** ^ undeclared identifier
  755. ***** ^ undeclared identifier
  756. 376 Timer.SetAppTimer(CARDINAL(op)); |
  757. ***** ^ not supported yet
  758. ***** ^ not supported yet
  759. ***** ^ not supported yet
  760. 377 22 : (* Emulate *)
  761. 378 IFetchS(sp);
  762. ***** ^ not supported yet
  763. ***** ^ not supported yet
  764. 379 ChangeEmulation(sp^); |
  765. ***** ^ not supported yet
  766. ***** ^ not supported yet
  767. 380 23 : (* Execute script (chain) *)
  768. 381 IFetchS(sp);
  769. ***** ^ not supported yet
  770. ***** ^ not supported yet
  771. 382 IF LoadScript(sp^) THEN
  772. ***** ^ not supported yet
  773. ***** ^ not supported yet
  774. 383 IO.WrStr('Script Error: Script "');
  775. ***** ^ not supported yet
  776. ***** ^ not supported yet
  777. ***** ^ not supported yet
  778. 384 IO.WrStr(sp^);
  779. ***** ^ not supported yet
  780. ***** ^ not supported yet
  781. ***** ^ not supported yet
  782. 385 IO.WrStr('" not found.');
  783. ***** ^ not supported yet
  784. ***** ^ not supported yet
  785. ***** ^ not supported yet
  786. 386 IO.WrLn;
  787. ***** ^ not supported yet
  788. ***** ^ not supported yet
  789. 387 END; |
  790. 388 24 : (* Find *)
  791. 389 IFetch(op);
  792. ***** ^ not supported yet
  793. ***** ^ not supported yet
  794. 390 IFetchS(sp);
  795. ***** ^ not supported yet
  796. ***** ^ not supported yet
  797. 391 i:=CARDINAL(op);
  798. ***** ^ not supported yet
  799. 392 Str.Caps(SVar[i]);
  800. ***** ^ not supported yet
  801. ***** ^ not supported yet
  802. ***** ^ not supported yet
  803. ***** ^ not supported yet
  804. 393 Str.Caps(sp^);
  805. ***** ^ not supported yet
  806. ***** ^ not supported yet
  807. ***** ^ not supported yet
  808. 394 Flags[Found] := (Str.Pos(SVar[i],sp^)<>0FFFFH); |
  809. ***** ^ undeclared identifier
  810. ***** ^ undeclared identifier
  811. ***** ^ not supported yet
  812. ***** ^ not supported yet
  813. ***** ^ not supported yet
  814. ***** ^ not supported yet
  815. ***** ^ not supported yet
  816. 395 25,26 : (* Get, MGet *)
  817. 396 temp := CARDINAL(op);
  818. ***** ^ not supported yet
  819. 397 IFetch(op);
  820. ***** ^ not supported yet
  821. ***** ^ not supported yet
  822. 398 i:=CARDINAL(op);
  823. ***** ^ not supported yet
  824. 399 IFetch(op);
  825. ***** ^ not supported yet
  826. ***** ^ not supported yet
  827. 400 SLnth:=CARDINAL(op);
  828. ***** ^ not supported yet
  829. 401 RdStr(SVar[i],SLnth,(temp=25)); |
  830. ***** ^ not supported yet
  831. ***** ^ not supported yet
  832. ***** ^ not supported yet
  833. ***** ^ not supported yet
  834. 402 27,28 : (* GetFile, SendFile *)
  835. 403 temp := CARDINAL(op);
  836. ***** ^ not supported yet
  837. 404 IFetch(op); i:=CARDINAL(op);
  838. ***** ^ not supported yet
  839. ***** ^ not supported yet
  840. ***** ^ not supported yet
  841. 405 IFetchS(sp);
  842. ***** ^ not supported yet
  843. ***** ^ not supported yet
  844. 406 FileTransfer((temp=27),i,sp^); |
  845. ***** ^ not supported yet
  846. ***** ^ not supported yet
  847. 407 29 : (* Gosub *)
  848. 408 IFetchW(opw);
  849. ***** ^ not supported yet
  850. ***** ^ not supported yet
  851. 409 Push(IPC);
  852. ***** ^ not supported yet
  853. ***** ^ not supported yet
  854. 410 IPC:=opw; |
  855. 411 30 : (* Goto *)
  856. 412 IFetchW(opw);
  857. ***** ^ not supported yet
  858. ***** ^ not supported yet
  859. 413 IPC:=opw; |
  860. 414 31 : (* Hangup *)
  861. 415 Hangup; |
  862. ***** ^ not supported yet
  863. 416 32 : (* Return *)
  864. 417 Pop(IPC); |
  865. ***** ^ not supported yet
  866. ***** ^ not supported yet
  867. 418 33 : (* IsFile *)
  868. 419 IFetchS(sp);
  869. ***** ^ not supported yet
  870. ***** ^ not supported yet
  871. 420 SetSuccess(FIO.Exists(sp^)); |
  872. ***** ^ not supported yet
  873. ***** ^ not supported yet
  874. ***** ^ not supported yet
  875. ***** ^ not supported yet
  876. 421 34 : (* KFlush *)
  877. 422 WHILE IO.KeyPressed() DO
  878. ***** ^ not supported yet
  879. ***** ^ not supported yet
  880. ***** ^ not supported yet
  881. 423 c:=IO.RdKey();
  882. ***** ^ not supported yet
  883. ***** ^ not supported yet
  884. ***** ^ not supported yet
  885. 424 END; |
  886. 425 35 : (* Locate(row,col) *)
  887. 426 IFetch(op);
  888. ***** ^ not supported yet
  889. ***** ^ not supported yet
  890. 427 temp:=CARDINAL(op);
  891. ***** ^ not supported yet
  892. 428 IFetch(op);
  893. ***** ^ not supported yet
  894. ***** ^ not supported yet
  895. 429 Window.GotoXY(CARDINAL(op)+1,temp+1); |
  896. ***** ^ not supported yet
  897. ***** ^ not supported yet
  898. ***** ^ not supported yet
  899. ***** ^ not supported yet
  900. 430 36 : (* Open Logfile *)
  901. 431 IFetchS(sp);
  902. ***** ^ not supported yet
  903. ***** ^ not supported yet
  904. 432 Lib.Move(sp,ADR(CommUtil.CaptureFile),SLnth+1);
  905. ***** ^ not supported yet
  906. ***** ^ not supported yet
  907. ***** ^ not supported yet
  908. ***** ^ undeclared identifier
  909. ***** ^ not supported yet
  910. ***** ^ not supported yet
  911. ***** ^ not supported yet
  912. 433 IF CommUtil.CaptureFile[0]=0C THEN
  913. ***** ^ not supported yet
  914. ***** ^ not supported yet
  915. ***** ^ not supported yet
  916. 434 CommUtil.CaptureFile:='ODYSSEY.LOG';
  917. ***** ^ not supported yet
  918. ***** ^ not supported yet
  919. ***** ^ not supported yet
  920. 435 END;
  921. 436 CommUtil.SetLogMode(CommUtil.OpenLogging);
  922. ***** ^ not supported yet
  923. ***** ^ not supported yet
  924. ***** ^ not supported yet
  925. ***** ^ not supported yet
  926. 437 SetSuccess(FIO.IOresult()=0);
  927. ***** ^ not supported yet
  928. ***** ^ not supported yet
  929. ***** ^ not supported yet
  930. ***** ^ not supported yet
  931. ***** ^ not supported yet
  932. 438 CommUtil.StatusLine(CommUtil.capture); |
  933. ***** ^ not supported yet
  934. ***** ^ not supported yet
  935. ***** ^ not supported yet
  936. ***** ^ not supported yet
  937. 439 37 : CommUtil.SetLogMode(CommUtil.CloseLogging);
  938. ***** ^ not supported yet
  939. ***** ^ not supported yet
  940. ***** ^ not supported yet
  941. ***** ^ not supported yet
  942. 440 CommUtil.StatusLine(CommUtil.capture); |
  943. ***** ^ not supported yet
  944. ***** ^ not supported yet
  945. ***** ^ not supported yet
  946. ***** ^ not supported yet
  947. 441 38 : CommUtil.SetLogMode(CommUtil.SuspendLogging);
  948. ***** ^ not supported yet
  949. ***** ^ not supported yet
  950. ***** ^ not supported yet
  951. ***** ^ not supported yet
  952. 442 CommUtil.StatusLine(CommUtil.capture); |
  953. ***** ^ not supported yet
  954. ***** ^ not supported yet
  955. ***** ^ not supported yet
  956. ***** ^ not supported yet
  957. 443 39 : CommUtil.SetLogMode(CommUtil.ResumeLogging);
  958. ***** ^ not supported yet
  959. ***** ^ not supported yet
  960. ***** ^ not supported yet
  961. ***** ^ not supported yet
  962. 444 CommUtil.StatusLine(CommUtil.capture); |
  963. ***** ^ not supported yet
  964. ***** ^ not supported yet
  965. ***** ^ not supported yet
  966. ***** ^ not supported yet
  967. 445 40 : (* Send Macro String *)
  968. 446 IFetch(op);
  969. ***** ^ not supported yet
  970. ***** ^ not supported yet
  971. 447 i:=CARDINAL(op);
  972. ***** ^ not supported yet
  973. 448 CommUtil.TransmitMacro(i); |
  974. ***** ^ not supported yet
  975. ***** ^ not supported yet
  976. ***** ^ not supported yet
  977. 449 41 : IFetchS(sp);
  978. ***** ^ not supported yet
  979. ***** ^ not supported yet
  980. 450 i:=Value(sp^);
  981. ***** ^ not supported yet
  982. ***** ^ not supported yet
  983. 451 IF i<10 THEN
  984. 452 CommUtil.TransmitMacro(i);
  985. ***** ^ not supported yet
  986. ***** ^ not supported yet
  987. ***** ^ not supported yet
  988. 453 END; |
  989. 454 42 : (* Load Macro File *)
  990. 455 IFetchS(sp);
  991. ***** ^ not supported yet
  992. ***** ^ not supported yet
  993. 456 (*ErrorMessage('Load Macro File command not supported!');*)|
  994. 457 43 : CommUtil.Printer(TRUE); |
  995. ***** ^ not supported yet
  996. ***** ^ not supported yet
  997. ***** ^ not supported yet
  998. 458 44 : CommUtil.Printer(FALSE); |
  999. ***** ^ not supported yet
  1000. ***** ^ not supported yet
  1001. ***** ^ not supported yet
  1002. 459 45 : (* Quit *)
  1003. 460 Hangup;
  1004. ***** ^ not supported yet
  1005. 461 Window.Clear;
  1006. ***** ^ not supported yet
  1007. ***** ^ not supported yet
  1008. 462 HALT; |
  1009. ***** ^ undeclared identifier
  1010. 463 46 : RFlush; |
  1011. ***** ^ not supported yet
  1012. 464 47 : (* RGet *)
  1013. 465 IFetch(op); IFetch(op); IFetch(op); |
  1014. ***** ^ not supported yet
  1015. ***** ^ not supported yet
  1016. ***** ^ not supported yet
  1017. ***** ^ not supported yet
  1018. ***** ^ not supported yet
  1019. ***** ^ not supported yet
  1020. 466 48 : (* Run *)
  1021. 467 IFetch(op);
  1022. ***** ^ not supported yet
  1023. ***** ^ not supported yet
  1024. 468 KbdWait := (op=1);
  1025. 469 IFetchS(sp);
  1026. ***** ^ not supported yet
  1027. ***** ^ not supported yet
  1028. 470 Run(sp^); |
  1029. ***** ^ not supported yet
  1030. ***** ^ not supported yet
  1031. 471 49,50,51 : (* Empty *); |
  1032. 472 52 : (* CompareStr - used in SWITCH code *)
  1033. 473 IFetch(op);
  1034. ***** ^ not supported yet
  1035. ***** ^ not supported yet
  1036. 474 i:=CARDINAL(op);
  1037. ***** ^ not supported yet
  1038. 475 IFetchS(sp);
  1039. ***** ^ not supported yet
  1040. ***** ^ not supported yet
  1041. 476 Str.Caps(SVar[i]);
  1042. ***** ^ not supported yet
  1043. ***** ^ not supported yet
  1044. ***** ^ not supported yet
  1045. ***** ^ not supported yet
  1046. 477 Str.Caps(sp^);
  1047. ***** ^ not supported yet
  1048. ***** ^ not supported yet
  1049. ***** ^ not supported yet
  1050. 478 SetSuccess(Str.Compare(SVar[i],sp^)=0); |
  1051. ***** ^ not supported yet
  1052. ***** ^ not supported yet
  1053. ***** ^ not supported yet
  1054. ***** ^ not supported yet
  1055. ***** ^ not supported yet
  1056. ***** ^ not supported yet
  1057. ***** ^ not supported yet
  1058. 479 53 : (* When *)
  1059. 480 IFetchS(sp);
  1060. ***** ^ not supported yet
  1061. ***** ^ not supported yet
  1062. 481 Lib.Move(sp,ADR(WhenString),SLnth+1);
  1063. ***** ^ not supported yet
  1064. ***** ^ not supported yet
  1065. ***** ^ not supported yet
  1066. ***** ^ undeclared identifier
  1067. ***** ^ undeclared identifier
  1068. ***** ^ not supported yet
  1069. 482 IFetchS(sp);
  1070. ***** ^ not supported yet
  1071. ***** ^ not supported yet
  1072. 483 Lib.Move(sp,ADR(WhenAction),SLnth+1);
  1073. ***** ^ not supported yet
  1074. ***** ^ not supported yet
  1075. ***** ^ not supported yet
  1076. ***** ^ undeclared identifier
  1077. ***** ^ undeclared identifier
  1078. ***** ^ not supported yet
  1079. 484 WhenProcessing := TRUE; |
  1080. ***** ^ undeclared identifier
  1081. 485 54 : (* CWhen *)
  1082. 486 WhenProcessing := FALSE; |
  1083. ***** ^ undeclared identifier
  1084. 487 55 : (* NOP *) |
  1085. 488 56 : (* NOP *) |
  1086. 489 ELSE
  1087. 490 IO.WrStr('Illegal Script Instruction!');
  1088. ***** ^ not supported yet
  1089. ***** ^ not supported yet
  1090. ***** ^ not supported yet
  1091. 491 IO.WrLn;
  1092. ***** ^ not supported yet
  1093. ***** ^ not supported yet
  1094. 492 TerminateScript;
  1095. ***** ^ not supported yet
  1096. 493 END; (* cases *)
  1097. 494 END NextInstruction;
  1098. ***** ^ not supported yet
  1099. 495
  1100. 496 (*.............................................*)
  1101. 497
  1102. 498 PROCEDURE GetChar(VAR c:CHAR) : BOOLEAN;
  1103. 499 VAR
  1104. 500 res : BOOLEAN;
  1105. 501 BEGIN
  1106. 502 res := TRUE;
  1107. 503 c := TransmitString[TxPtr];
  1108. ***** ^ undeclared identifier
  1109. ***** ^ undeclared identifier
  1110. 504 INC(TxPtr);
  1111. ***** ^ undeclared identifier
  1112. ***** ^ undeclared identifier
  1113. 505 IF c='^' THEN
  1114. 506 c := TransmitString[TxPtr];
  1115. ***** ^ undeclared identifier
  1116. ***** ^ undeclared identifier
  1117. 507 INC(TxPtr);
  1118. ***** ^ undeclared identifier
  1119. ***** ^ undeclared identifier
  1120. 508 IF (c>='@') AND (c<='_') THEN
  1121. 509 c := CHR(ORD(c)-64);
  1122. ***** ^ undeclared identifier
  1123. ***** ^ undeclared identifier
  1124. ***** ^ not supported yet
  1125. ***** ^ not supported yet
  1126. 510 END;
  1127. 511 ELSIF c='|' THEN
  1128. 512 c := CHR(13);
  1129. ***** ^ undeclared identifier
  1130. ***** ^ not supported yet
  1131. 513 ELSIF c='~' THEN
  1132. 514 Lib.Delay(500);
  1133. ***** ^ not supported yet
  1134. ***** ^ not supported yet
  1135. ***** ^ not supported yet
  1136. 515 res := FALSE;
  1137. 516 END;
  1138. 517 IF TransmitString[TxPtr]=0C THEN
  1139. ***** ^ undeclared identifier
  1140. ***** ^ undeclared identifier
  1141. 518 ScriptState := Running
  1142. ***** ^ undeclared identifier
  1143. ***** ^ undeclared identifier
  1144. 519 END;
  1145. 520 RETURN res;
  1146. 521 END GetChar;
  1147. ***** ^ not supported yet
  1148. 522
  1149. 523 (*.............................................*)
  1150. 524
  1151. 525 PROCEDURE SingleStep;
  1152. 526 VAR
  1153. 527 c : CHAR;
  1154. 528 BEGIN
  1155. 529 CASE ScriptState OF
  1156. ***** ^ undeclared identifier
  1157. 530 Off : RETURN; |
  1158. ***** ^ undeclared identifier
  1159. 531 Running : NextInstruction; |
  1160. ***** ^ undeclared identifier
  1161. ***** ^ not supported yet
  1162. 532 Transmitting : IF GetChar(c) THEN
  1163. ***** ^ undeclared identifier
  1164. ***** ^ not supported yet
  1165. ***** ^ not supported yet
  1166. 533 RS232.SerialWrite(c,1);
  1167. ***** ^ not supported yet
  1168. ***** ^ not supported yet
  1169. ***** ^ not supported yet
  1170. 534 Lib.Delay(20);
  1171. ***** ^ not supported yet
  1172. ***** ^ not supported yet
  1173. ***** ^ not supported yet
  1174. 535 END; |
  1175. 536 Waiting : IF (NOT WaitForever) AND Timer.AppTimerExpired() THEN
  1176. ***** ^ undeclared identifier
  1177. ***** ^ not supported yet
  1178. ***** ^ not supported yet
  1179. ***** ^ not supported yet
  1180. 537 Flags[WaitFor] := FALSE;
  1181. ***** ^ undeclared identifier
  1182. ***** ^ undeclared identifier
  1183. 538 ScriptState := Running;
  1184. ***** ^ undeclared identifier
  1185. ***** ^ undeclared identifier
  1186. 539 END; |
  1187. 540 Pausing : IF Timer.AppTimerExpired() THEN
  1188. ***** ^ undeclared identifier
  1189. ***** ^ not supported yet
  1190. ***** ^ not supported yet
  1191. ***** ^ not supported yet
  1192. 541 ScriptState := Running;
  1193. ***** ^ undeclared identifier
  1194. ***** ^ undeclared identifier
  1195. 542 END; |
  1196. 543 WaitSuccess : Flags[WaitFor]:=TRUE;
  1197. ***** ^ undeclared identifier
  1198. ***** ^ undeclared identifier
  1199. ***** ^ undeclared identifier
  1200. 544 ScriptState:=Running; |
  1201. ***** ^ undeclared identifier
  1202. ***** ^ undeclared identifier
  1203. 545 END; (* cases *)
  1204. 546 Timer.UpdateTimer;
  1205. ***** ^ not supported yet
  1206. ***** ^ not supported yet
  1207. 547 END SingleStep;
  1208. ***** ^ not supported yet
  1209. 548
  1210. 549 (*.............................................*)
  1211. 550
  1212. 551 BEGIN
  1213. 552 ScriptState := Off;
  1214. ***** ^ undeclared identifier
  1215. ***** ^ undeclared identifier
  1216. 553 END ScriptProcessor.
  1217. ***** ^ not supported yet
  1218. 554
  1219. 663 errors