You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/external_resources.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Other people contribute to it creating alternative IDEs, libraries, tools and ut
9
9
### Tommy Gun
10
10
A free IDE created by [Tony Thompson](http://www.users.on.net/~tonyt73). This powerful tool is designed to create
11
11
generic 8-bit and 16-bit projects, and can be set up to be used with ZX Basic.
12
-
Have a look at the [TommyGun files](https://sourceforge.net/projects/tommygun/files/)page.
12
+
Have a look at the [TommyGun files](https://sourceforge.net/projects/tommygun/files/)or [source code](https://github.com/tonyt73/TommyGun) pages.
13
13
14
14
To integrate ZX Basic with Tommy Gun, please follow this [tutorial](https://forum.boriel.com/showthread.php?tid=110).
15
15
@@ -25,7 +25,7 @@ further information. The documentation of it is very well maintained.
25
25
26
26
*[Multipaint](http://multipaint.kameli.net/), a Java-based graphics editor that allows you to draw pictures with the color limitations of some typical screen formats from 8-bit computer platforms, like ZX Spectrum, C64 and Plus/4 high-resolution and multicolor, MSX 1 and Amstrad CPC0.
27
27
28
-
*[ZX-Paintbrush](https://zx-modules.de/), a Windows graphics editor specifically for ZX-Spectrum screen formats, including multicolor.
28
+
*[ZX-Paintbrush](https://zx-modules.jimdofree.com/), a Windows graphics editor specifically for ZX-Spectrum screen formats, including multicolor.
29
29
30
30
## Utilities
31
31
Other generic utilities not above are:
@@ -45,13 +45,13 @@ There are several external engines that can be used within compiler to achieve e
Copy file name to clipboardExpand all lines: docs/identifier.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Note that there are a number of common statements that you may find in ZX BASIC
9
9
10
10
## Reserved Identifiers
11
11
12
-
The following identifiers are _reserved words_, and can't be used as variables, functions or labels. Reserved identifiers are _case insensitive_ (it doesn't matter whether you write them in upper or lower case letters, or a mix of them). So **PRINT**, **print** and **PrInT** means all the same in ZX BASIC. On the other hand, non-reserved words can be either case sensitive or not (depending on the [options](options.md)) in effect.
12
+
The following identifiers are _reserved words_, and can't be used as variables, functions or labels. Reserved identifiers are _case insensitive_ (it doesn't matter whether you write them in upper or lower case letters, or a mix of them). So **PRINT**, **print** and **PrInT** means all the same in ZX BASIC. On the other hand, non-reserved words can be either case sensitive or not (depending on the [options](zxb.md#command-line-options) in effect).
13
13
14
14
Identifiers shown in bold are taken from the Sinclair BASIC (beware their meaning here might be different, however). Some of them has been marked as _statements_, _functions_ or _operators_:
15
15
@@ -120,7 +120,7 @@ You should also avoid defining (with a SUB or FUNCTION command) routines with th
Simple INPUT routine (not as powerful as Sinclair BASIC's), but this one uses the PRINT42 routine.
6
+
Issues a cursor to the screen, waits for the user to type and returns the user's input through PRINT42 when the user presses ENTER.
7
+
8
+
## Syntax
9
+
10
+
```basic
11
+
A$ = INPUT42(MaxChars)
12
+
```
13
+
MaxChars is the number of characters the INPUT42 function will accept as a maximum. It is a UINTEGER and thus has a maximum value of 65535.
14
+
15
+
## Requirements
16
+
17
+
INPUT42 is a library function that must be included before it can be used. Use the following directive:
18
+
19
+
```
20
+
# include <input42.bas>
21
+
```
22
+
23
+
## Remarks
24
+
25
+
* Note that this function ALWAYS RETURNS A STRING, which is very different from Sinclair BASIC's INPUT statement.
26
+
* This function places the Input cursor at the last print position, not at the bottom of the screen. Remember that ZX Basic allows access to all 24 screen lines, so PRINT AT 24,0; sets the PRINT cursor to the bottom of the screen.
27
+
* Avoid recursive / multiple inclusion
28
+
* The input subroutine DOES NOT act like ZX Spectrum INPUT command
Copy file name to clipboardExpand all lines: docs/sub.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
# SUB
2
2
3
-
4
3
ZX Basic allows function and subroutines declarations. Sinclair Basic does not allow named subroutines, only calls with the GOSUB command.
5
4
6
5
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
0 commit comments