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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 279
» Latest member: imd
» Forum threads: 1,089
» Forum posts: 6,493

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 46 Guest(s)
Facebook

Latest Threads
zxmoria, a port of umoria
Forum: Gallery
Last Post: sdo303
2026-10-23, 05:46 PM
» Replies: 1
» Views: 282
zxpaging
Forum: Gallery
Last Post: sdo303
2026-10-18, 12:12 PM
» Replies: 0
» Views: 193
GuSprites
Forum: Help & Support
Last Post: zedex82
2026-06-19, 06:39 PM
» Replies: 2
» Views: 759
New video Couse / Nuevo c...
Forum: News
Last Post: Duefectu
2026-04-29, 11:02 PM
» Replies: 0
» Views: 3,100
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 1,161
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 2,566
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 2,162
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 3,059
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 1,792
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 1,861

 
  Version 1.0.8 released!
Posted by: boriel - 2009-03-01, 01:34 AM - Forum: ZX Basic Compiler - No Replies

This release includes new fixes and improvements:

  • Fixed a bug in the PRINT command when printing floating point numbers due to a Spectrum ROM Bug. The temporary attributer were not being used.
  • Fixed a bug in the STR$ function that made the program to freeze and also clears the temporary attributes (related to the ROM bug as above).
  • Fixed a bug in the assembler which, sometimes won't assemble if #init directives were used. Also some code clean up.
  • Now you can enter ink/paper codes and graphic characters ala BASIN (read below)
  • Added shift bit instructions (SHL, SHR)
About the spectrum ROM bug. The original STR$ Basic function clean up the temporary attributes. Try this in your ZX Spectrum:
Code:
10 PRINT PAPER 2; STR$(0)
The bug causes that PAPER 2 has no effect (you should see a "0" over a red background). ZX Basic workaround this bug now.

To enter an UDG character like "A" type \A. For example:
Code:
PRINT "\a": REM This will print UDG "A"
The numeric graphics characters can be obtained using the backslash (as above) followed by two punctuation characters. These ones are: [ ] ['] [:] and [.] characters. Each dot represents a square in the graphic character. Try this:
Code:
10 PRINT "\ \::\:'\:.\..\'."

Print this item

  Version 1.0.7 released!
Posted by: boriel - 2009-02-22, 11:58 AM - Forum: ZX Basic Compiler - No Replies

This release includes new fixes and improvements:

  • Fixes a bug in the DRAW command. The draw implementation was buggy. The new DRAW implementation works ok, and is faster and smaller.
  • Support for DRAW with 3 arguments. Now you can DRAW arcs as in Sinclair BASIC. The routine works exactly as the ZX Spectrum ROM, but also allows drawing in the lower 16 scan lines
  • Optimization: If a function is not called, and you use -O1 (or a higher number), it won't be compiled, allowing saving space
  • Optimization: If a global variable is not used, and you use -O2 (or a higher number), it won't be compiled, allowing saving space
  • Optimization: The code generated for temporary atributes is now smaller and faster
New compiler options:
  • Use --array-base=1 to start arrays at subscript 1 (default is 0)
  • Use -On to enable optimizations. Higher n number leads to higher optimizations

Print this item

  About constants
Posted by: LCD - 2009-02-13, 07: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 - 2009-02-13, 04: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 - 2009-02-13, 09: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 - 2009-02-03, 03: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 - 2008-11-08, 11: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 - 2008-06-07, 07: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 - 2008-06-07, 06: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