Skip to content

Commit cecb04b

Browse files
MrKOSMOSboriel
authored andcommitted
Small fixes
Add Declare to function and sub doc pages See Also
1 parent 4ee5f27 commit cecb04b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/function.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,6 @@ that can be ignored.
8080
* [ASM](asm.md)
8181
* [END](end.md)
8282
* [RETURN](return.md)
83+
* [DECLARE](declare.md)
8384
* [ByREF](byref.md)
8485
* [ByVAL](byval.md)

docs/sub.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SUB
22

3-
43
ZX Basic allows function and subroutines declarations. Sinclair Basic does not allow named subroutines, only calls with the GOSUB command.
54

65
A subroutine defined with the SUB statement is invoked directly. Unlike a [FUNCTION](function.md), a SUB does not return a value. This is the fundamental difference between code defined with SUB and code defined with FUNCTION. Other than that, the setup for SUB and FUNCTION are almost identical.
@@ -71,3 +70,4 @@ It will also issue a warning (perhaps you forgot to call it?), that can be ignor
7170
* [ASM](asm.md)
7271
* [END](end.md)
7372
* [RETURN](return.md)
73+
* [DECLARE](declare.md)

0 commit comments

Comments
 (0)