Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 294
» Latest member: nordikeyewear
» Forum threads: 1,028
» Forum posts: 6,212

Full Statistics

Online Users
There are currently 455 online users.
» 0 Member(s) | 452 Guest(s)
Bing, Facebook, Yandex

Latest Threads
Includes in ASM
Forum: How-To & Tutorials
Last Post: bracckets
04-04-2024, 12:17 AM
» Replies: 2
» Views: 679
Intermittent errors
Forum: Help & Support
Last Post: zarsoft
03-12-2024, 12:39 PM
» Replies: 0
» Views: 370
Store array information i...
Forum: Help & Support
Last Post: rbiondi
03-10-2024, 09:42 PM
» Replies: 0
» Views: 481
ScrollLeft function scrol...
Forum: Bug Reports
Last Post: rbiondi
03-07-2024, 03:57 PM
» Replies: 2
» Views: 940
string.bas errors when co...
Forum: Bug Reports
Last Post: rbiondi
03-01-2024, 10:10 AM
» Replies: 2
» Views: 829
Using Beepola with ZX BAS...
Forum: How-To & Tutorials
Last Post: edtoo
02-29-2024, 09:47 AM
» Replies: 15
» Views: 33,470
Johnny Bravo
Forum: Gallery
Last Post: zarsoft
02-11-2024, 11:20 PM
» Replies: 0
» Views: 535
Compiling +D G+DOS progra...
Forum: ZX Basic Compiler
Last Post: boriel
01-22-2024, 08:32 AM
» Replies: 4
» Views: 8,867
VAL = ? (solved)
Forum: Bug Reports
Last Post: zarsoft
01-03-2024, 11:44 PM
» Replies: 8
» Views: 3,590
Wrong math (solved)
Forum: Bug Reports
Last Post: zarsoft
01-03-2024, 11:38 PM
» Replies: 4
» Views: 1,960

 
  About constants
Posted by: LCD - 02-13-2009, 06:10 PM - Forum: ZX Basic Compiler - Replies (9)

Defining constants with CONST Constant as UByte=0 is not the ideal way, because they can be easy mistaken for variables, and can interfer with variables. So my proposal is to change it to similar way, PureBasic does:
#Constant as UByte=0, and all constants are marked with "#" sign in the front. In PureBasic it is a little different, as the constant and variable types are defined this way: #constant.ub=0 (ub=short for unsigned byte, has to be defined only one time).
apart from this I propose to include build-in constants with ROM Labels and System variables:
#KSTATE=23552, #LASTK=23560, #REPDEL=23561, #REPPER=23562, ...
#start=$0, #error_1=$8, #print_a_1=$10, #get_char=$18
#test_char=$1C, #next_char=$20, #fp_calc=$28, #bc_spaces=$30, ...
Also constants for some other usages:
#False=0, #True=1, #Zero=0
#Black=0, #Blue=1, #Red=2, #Magenta=3,...

Is this a good idea???

Print this item

  Online Documentation (Wiki)
Posted by: boriel - 02-13-2009, 03:31 PM - Forum: Documentation - No Replies

There is (already) a Wiki with the online documentation.

Some users are unaware of this documentation. Please, read there before asking for help since the documentation includes a programming reference and lot of examples, code snippets, etc.

Note: To contribute to the wiki you must register (create an account) in this forum, and later login into the wiki with the same user/pass.

Print this item

  Version 1.0.5 released!
Posted by: boriel - 02-13-2009, 08:33 AM - Forum: ZX Basic Compiler - No Replies

New version 1.0.5 released.

This version fixes very important bugs. Please download this version before reporting problems with the compiler.

Print this item

  BUG report (*solved*)
Posted by: juanjo - 02-03-2009, 02:57 AM - Forum: Bug Reports - Replies (1)

Hola, he estado haciendo un programita con tu lenguaje, que me parece de lo mas interesante, y he dado con un par de bugs. Lo he posteado primero en speccy.org porque aun no conocia este foro, miralo alli por favor:

http://www.speccy.org/foro/viewtopic.php...375#p15541

Gracias

Print this item

  Instrucciones para operar a nivel de bit
Posted by: juan - 11-08-2008, 10:01 AM - Forum: ZX Basic Compiler - Replies (5)

Hola, boriel.

¿Hay en zx basic instrucciones o funciones para trabajar a nivel de bit? Las necesito, por ejemplo, para leer el teclado con IN.

Gracias.

Print this item

  A new creature is Born!
Posted by: boriel - 06-07-2008, 06:06 PM - Forum: ZX Basic Compiler - Replies (22)

Yes, this message is to announce the release of the (my :roll: ) ZX Spectrum BASIC compiler.
You can ask here for support, but please do a search first before asking.

There's also a wiki in progress, with help an code snippets.
Remember also that latest download version will be always available at http://www.boriel.com/files/zxb

Compiler releases will be announced here.

Print this item

  Site upgraded to PHPBB3
Posted by: boriel - 06-07-2008, 05:38 PM - Forum: News - No Replies

As you might have already noticed, this site has been upgraded to phpBB3.
Hope you enjoy these changes.

Regards,
Boriel.

Print this item