File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ about the function and enable it to trap errors in use of the function.
2727##Syntax
2828
2929```
30- DECLARE <function_name> [(<parameter_list>)] AS <return_type>
30+ DECLARE FUNCTION <function_name> [(<parameter_list>)] [AS <return_type>]
31+ ```
32+ or
33+ ```
34+ DECLARE SUB <sub_name> [(<parameter_list>)]
3135```
3236
3337
Original file line number Diff line number Diff line change 1+ #PAUSE
2+
3+ ##Syntax
4+ ```
5+ PAUSE <value>
6+ ```
7+
8+ Just as in Sinclair basic, this command pauses the execution for the given number of frames
9+ (1 frame equals to 1/50th of second in Europe, 1/60th of second in the US: this is usually in
10+ sync with the electricity AC frecuency) or until a key is pressed.
11+
12+ Bear in mind the number 0 is actually taken as 65536.
13+ Currently this sentence uses the Sinclair BASIC ROM, so ** it needs interruptions enabled** .
14+
15+ Example:
16+
17+ ```
18+ PRINT "Press any key"
19+ PAUSE 0: REM waits for a Key pressed or for 65536 frames
20+ ```
21+
22+ ##Remarks
23+ * This function is 100% Sinclair BASIC compatible.
You can’t perform that action at this time.
0 commit comments