ZXBasic

From BorielWiki
(Difference between revisions)
Jump to: navigation, search
Line 15: Line 15:
 
* [[ZX_Basic:Sample Programs|Sample Programs]]
 
* [[ZX_Basic:Sample Programs|Sample Programs]]
 
: Sample programs you can try to see how ZX BASIC looks like and how fast it runs.
 
: Sample programs you can try to see how ZX BASIC looks like and how fast it runs.
 +
====Games====
 +
* [[ZX_Basic:Sample Programs#Games|Game examples]]
 +
: Same little games examples.
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 31: Line 34:
 
</tr>
 
</tr>
 
</table>
 
</table>
 
==Tutorials==
 
 
Tutorials and examples are the fastest way (in my opinion) to learn a new language. Well, ZX BASIC is not so ''new'' if you are used to Sinclair BASIC. The following is a list of ''examples'', some of them already bundled with the ZX BASIC distribution in the <tt>examples/</tt> directory:
 
 
* [[ZX_BASIC:Circle.Bas|CIRCLE.BAS]]
 
:Draws a circle pixel by pixel using [[ZX_BASIC:PLOT|PLOT]] primitive
 
* [[ZX_BASIC:Clock.Bas|CLOCK.BAS]]
 
:Sample clock which uses the FRAMES variable (taken from the ZX Spectrum 48K user manual)
 
* [[ZX_BASIC:Clock2.Bas|CLOCK2.BAS]]
 
:Like above, but a bit improved.
 
* [[ZX_BASIC:Colors.bas|COLORS.BAS]]
 
:Colors example from the ZX Spectrum user Manual
 
* [[ZX_BASIC:Lines.bas|LINES.BAS]]
 
:Random color lines example from the ZX Spectrum 48K user manual.
 
* [[ZX_BASIC:Fact.bas|FACT.BAS]]
 
:Factorial ''recursive'' test.
 
* [[ZX_BASIC:FrereGustav.bas|FREREGUSTAV.BAS]]
 
:A sound demo (taken from the ZX Spectrum 48K user manual)
 
* [[ZX_BASIC:Flag.bas|FLAG.BAS]]
 
: UK Flag drawing (taken from the ZX Spectrum 48K / 128K user manual)
 
 
===Games===
 
* [[ZX_BASIC:Snake.Bas|SNAKE.BAS]]
 
:The snake game by Federico J. Alvarez Valero (05-02-2003) (English version)
 

Revision as of 20:13, 4 March 2009

General

About the ZX BASIC SDK
How to install the ZX Basic SDK in your system, and prerequisites for do it.
Tools available in the SDK.

Tutorials

Sample programs you can try to see how ZX BASIC looks like and how fast it runs.

Games

Same little games examples.

Language Reference

Language Syntax is very close to the original Sinclair BASIC, but it's expanded and enhaced.
Language data types: Instead of working always with Floating Point numbers (also available), there are also some integer types which are faster an take less memory.
Comprehensive list of identifiers you can't use as a variable name. Ej FOR, PRINT
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Translate
Google AdSense