Skip to content

Commit b34c35f

Browse files
authored
Merge pull request #595 from boriel/docs
Docs
2 parents 46c7288 + e6942ae commit b34c35f

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

docs/declare.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

docs/pause.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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.

0 commit comments

Comments
 (0)