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



Search Forums

(Advanced Search)

Forum Statistics
» Members: 249
» Latest member: namarang
» Forum threads: 886
» Forum posts: 6,050

Full Statistics

Online Users
There are currently 66 online users.
» 0 Member(s) | 64 Guest(s)
Bing, Google

Latest Threads
Forum problems fixed / Pr...
Forum: News
Last Post: namarang
10-13-2020, 03:52 PM
» Replies: 1
» Views: 4,768
some c# help
Forum: Off-Topic
Last Post: namarang
10-13-2020, 03:49 PM
» Replies: 1
» Views: 8,154
Forum: Core
Last Post: boriel
10-09-2020, 08:52 PM
» Replies: 1
» Views: 1,995
Code Size Limit
Forum: ZX Basic Compiler
Last Post: Ljg701
09-19-2020, 01:52 PM
» Replies: 1
» Views: 122
* Liquid War *
Forum: Gallery
Last Post: boriel
09-16-2020, 08:26 AM
» Replies: 1
» Views: 108
Spectrum BASIC Dialects
Forum: Wishlist
Last Post: boriel
09-05-2020, 10:08 AM
» Replies: 3
» Views: 252
Forum: Wishlist
Last Post: Neurox66
08-27-2020, 03:43 PM
» Replies: 2
» Views: 260
Dynamic Interrupt Routine
Forum: How-To & Tutorials
Last Post: boriel
08-19-2020, 08:27 AM
» Replies: 5
» Views: 459
WindowScrollUp (x1, y1, x...
Forum: Wishlist
Last Post: boriel
07-31-2020, 10:53 PM
» Replies: 3
» Views: 546
Ad Lunam Plus
Forum: Gallery
Last Post: Alessandro
07-25-2020, 02:24 PM
» Replies: 3
» Views: 640

  Code Size Limit
Posted by: yeti - 09-18-2020, 11:40 PM - Forum: ZX Basic Compiler - Replies (1)


I wonder what the limit is to code size with Boriel on:

ZX Spectrum Next?

Can I write my program without thinking about how Boriel is paging memory in the background?

Print this item

  * Liquid War *
Posted by: .fito. - 09-15-2020, 08:12 PM - Forum: Gallery - Replies (1)

Hello friends, how are you?

I present you the game made by the FitoSoft team. Made in Basic and compiled with Boriel zxb. 

[Image: ldWO5v.png]

It is based on an old "Deep Scan" arcade machine. Your mission will be to use the miners of your destroyer to eliminate any underwater threat. You have more information and download at:



Print this item

  Spectrum BASIC Dialects
Posted by: Dorogusha - 08-31-2020, 04:22 PM - Forum: Wishlist - Replies (3)

Support for common dialects can be implemented.
In the librares (modules).

128 BASIC (Where is PLAY & SPECTRUM ?)

Softek IS
Softek FP

In many cases it is not necessary to follow a strict syntax such as "REM S, A, x, y" (from Softek IS)". And use more correct syntax. But the compiler must understand all synonyms and correct them by prompting the programmer. In turn, the programmer can choose any synonyms, including leaving it as it is.
It is not necessary to use the words LET and SUB in the program, but it is advisable when declaring ...
It is permissible to use signs that an object belongs to a particular type (using letters !,%, $ Or color), as well as an statement to a particular library (to understand where it came from).
The programmer can add his own new statements, functions, libraries, synonyms (i.e. own syntax). But all of them, of course, must be described by the programmer.

Print this item

Posted by: Neurox66 - 08-26-2020, 03:55 PM - Forum: Wishlist - Replies (2)

I would like to see  available on the ZX Basic the control flow statements SELECT/CASE ... END SELECT

Select Case Answer$
    Case "YES"
    Case "NO"
    Case "MAYBE"
End Select


Print this item

  Dynamic Interrupt Routine
Posted by: emook - 08-17-2020, 11:56 PM - Forum: How-To & Tutorials - Replies (5)

A simple dynamic IM routine, it will automatically find the nearest suitable IM jump from, ie you can compile at any address. Best to keep below $C000 if you have any paging plans. 

dim bx as ubyte

Sub SetUpIM()
    ld hl,IMvect
    ld de,IMvect+1
    ld bc,257
    ld a,h
    ld i,a
    ld (hl),a
    ld h,a : ld l, a : ld a,$c3 : ld (hl),a : inc hl
    ld de,._ISR : ld (hl),e : inc hl : ld (hl),d
    IM 2
end asm
end sub

Sub fastcall ISR()

    push af : push bc : push hl : push de : push ix : push iy
    ex af,af'
    push af : exx
    end asm
    exx : pop af
    ex af,af'
    pop iy : pop ix : pop de : pop hl : pop bc : pop af
    'jp 56 uncomment for running with basic
    end asm

end sub

sub MyCustomIM()

    bx = bx + 1 BAND 7 : border bx

end sub

'stop uncomment for running in basic

    For y  = 0 to 20
        print at y,0; "testing .... ";bx 
    next y

ISR()     ' call to ensure ISR doesn't get optimized!

    ALIGN 256
    defs 257,0
end asm

Print this item

  WindowScrollUp (x1, y1, x2, y2, num_chars)
Posted by: .fito. - 07-17-2020, 10:41 PM - Forum: Wishlist - Replies (3)

hola compañero.

primero decirte que tu herramienta zxb es una maravilla y le está dando una nueva vida al spectrum.

He estado practicando con las funciones scrollup, scrolldown, ...left, right de pixel a pixel y son una maravilla.

Sé que tienes otras prioridades, tal como dijiste en otro hilo, pero yo te pediría implementar un windowscroll que desplaze al menos un cuadro (x1,y1,x2,y2) en las 4 direcciones, con atributos incluidos. Estoy con un juego que requiere scroll y me ayudaría muchísimo a tener un scroll en buenas condiciones y estoy seguro de que muchas personas lo están esperando para sus creaciones. Imagino que otras personas apoyarán mi petición.

mil gracias.

Dejo por aquí una traducción de andar por casa por respeto a todo el mundo:

Hello mate.

first tell you that your zxb tool is a wonder and it is giving a new life to the spectrum (and what I am is / was from amstrad).I know you have other priorities, as you said in another thread, but I would ask you to implement a windowscroll that moves at least one box (x1, y1, x2, y2) in all 4 directions, with attributes included? I am with a scroll type game and it would help me a lot to have a scroll in good condition and I am sure that many people are waiting for it. I imagine other people will support my request.

thank you.

Print this item

  Compiling errors
Posted by: Jodo - 07-13-2020, 02:14 PM - Forum: Help & Support - Replies (10)


I'm trying to compile a game written wholly in Sinclair BASIC and am having trouble with this line:

10 GOTO INT (RND*4)*6+1380

It works as expected when run as Basic but the compiler gives: 'Syntax Error. Unexpected token 'INT' <INT>'

If I rewrite it to:

10 LET a=INT (RND*4)*6+1380: GOTO a

this also works fine when run as Basic but the compiler gives: 'identifier 'a' is a var, not a label'

Is there another way I could write it that would compile?


Print this item

  Compiling pure Sinclair Basic
Posted by: Jodo - 07-10-2020, 12:36 PM - Forum: ZX Basic Compiler - Replies (3)

As per the subject, I'm trying to compile pure Sinclair Basic but am getting the following errors which I can't find anything about.

bwall.bas:4: Error: invalid directive #Run
bwall.bas:4: Error: illegal preprocessor character '-'

bwall.bas:68: Error: invalid directive #End
bwall.bas:68: Error: illegal preprocessor character '-'

I used this command: 'zxb bwall.bas --tzx --BASIC --autorun --sinclair --explicit' to compile
but have also tried without '--sinclair' and '--explicit' with the same results.

If anybody has any ideas I would be really appreciative. Thanks.

Print this item

  Ad Lunam Plus
Posted by: Alessandro - 07-09-2020, 03:35 PM - Forum: Gallery - Replies (3)

Ad Lunam was a proof of concept, designed to fit into the humble 48K. Here is its big brother, Ad Lunam Plus.

[Image: alp01.png]

The game is now a 128K exclusive - although I have, as for several of my other titles, considered to make a TR-DOS version which can be run on the 48K with a DivIDE/DivMMC. and ESXDOS - and features graphics for many of its sections and AY sound for national anthems and end-of-game congratulations.

[Image: alp02.png]
Will you impersonate Von Braun or Korolev?

[Image: alp04.png]
The main menu

There are other tweakings and enhancements, for instance "pilots" are now aptly called "astronauts" and "cosmonauts" and you can even see their faces when selecting them for training.

[Image: alp07.png]
Choose an ability to train John Glenn in

In the R&D section, you are now able to see pictures of what you are actually researching.

[Image: alp05.png]
Soviet research and development main menu

[Image: alp06.png]
American rockets

Facilities (previously called "structures") can also be seen now, even when they are under construction/repair.

[Image: alp10.png]
The advanced training facility is being built, while launch pad 1 hosts a rocket for a planned mission

You can now follow missions from the control room.

[Image: alp08.png]
Engines started, lift off

End-of-turn messages and communications will be shown as papers on a desktop.

[Image: alp09.png]
The president is pleased with our work

The game is currently at version 1.0 and like its predecessor is available in Italian, English and Spanish. Please report any feedback about possible bugs/strange behavior/typos etc. here or to my email address (shown in the manual).



Print this item

  Python warning about unused parameter
Posted by: mauvedeity - 07-06-2020, 01:59 PM - Forum: Bug Reports - No Replies


When compiling programs, using zxbc.py 1.11.1, I get a python warning message:

/Users/mauvedeity/bin/zxbasic/library/print64.bas:20: warning: Parameter 'characters' is never used
I appreciate this is just a warning, but is there something that we can do about this? Many thanks.

Print this item