02-13-2011, 10:49 AM
There's no "UDG.bas" program in the standard distribution. Maybe you did' download the example from another site?
The program "snake.bas" uses an UDG, by the way.
Unfortunately DATA is not yet supported (READ, DATA, RESTORE are a waste of space :!: but will be supported in the next release). You should use a DIM array as explained in a previous post.
BIN 1111 can be written as 1111b. See <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Syntax#Numbers">http://www.boriel.com/wiki/en/index.php ... ax#Numbers</a><!-- m --> ZX BASIC support binary and hexadecimal values using b and h suffixes.
Anyway BIN is to be implemented in this release (1.2.7) about to be published to allow better compatibility with old BASIC listings. BIN allows up to 16 [0|1] digits constants, so it's a 16 bit value.
The program "snake.bas" uses an UDG, by the way.
Unfortunately DATA is not yet supported (READ, DATA, RESTORE are a waste of space :!: but will be supported in the next release). You should use a DIM array as explained in a previous post.
BIN 1111 can be written as 1111b. See <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Syntax#Numbers">http://www.boriel.com/wiki/en/index.php ... ax#Numbers</a><!-- m --> ZX BASIC support binary and hexadecimal values using b and h suffixes.
Anyway BIN is to be implemented in this release (1.2.7) about to be published to allow better compatibility with old BASIC listings. BIN allows up to 16 [0|1] digits constants, so it's a 16 bit value.