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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 267
» Latest member: ConradoBadenas
» Forum threads: 1,083
» Forum posts: 6,472

Full Statistics

Online Users
There are currently 211 online users.
» 0 Member(s) | 209 Guest(s)
Baidu, Bing

Latest Threads
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
Yesterday, 11:40 AM
» Replies: 5
» Views: 88
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 86
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 137
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 84
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 187
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 349
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: zedex82
2025-10-05, 07:36 PM
» Replies: 2
» Views: 266
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 261
ZX Basic Studio Bugs
Forum: Bug Reports
Last Post: Duefectu
2025-09-23, 04:07 PM
» Replies: 5
» Views: 1,051
Printing with FZX
Forum: Help & Support
Last Post: boriel
2025-07-17, 10:08 PM
» Replies: 1
» Views: 1,948

 
  Declare an array type
Posted by: baltasarq - 2024-11-22, 12:51 PM - Forum: Help & Support - Replies (2)

How do you declare an array type? I supposed it should be easy to find in the docs, but didn't have any luck. For instance:

Code:
sub doThis(v as string?)
    print( v( 0 ) )
endsub
I'm certain it is not string() (I have tried that). I wonder if I have to use DIM again?
Thanks,
-- Baltasar

Print this item

  Reading DATA
Posted by: baltasarq - 2024-11-20, 09:25 PM - Forum: ZX Basic Compiler - Replies (4)

Lo siento si esto ha sido preguntado antes, pero no lo he encontrado.

Dado un proc como este:


Code:
const NumLocs as ubyte = 2

'enum Exits
    const ExitNorth as ubyte = 0
    const ExitSouth as ubyte = 1
    const ExitEast as ubyte = 2
    const ExitWest as ubyte = 3
    const ExitUp as ubyte = 4
    const ExitDown as ubyte = 5
    const NumExits as ubyte = 6
'end enum

dim locDescs(NumLocs) as string
dim locExits(NumLocs, NumExits) as integer


sub init_locs()
    'locDescs( 0 ) = "El lugar del alunizaje. La vaina abierta y sin  " _
    '   + "contenido parece una triste parodia de ella misma. " _
    '   + "Un valle natural conduce al sur."
    'locDescs( 1 ) = "El lugar del alunizaje. La vaina abierta y sin  " _
    '   + "contenido parece una triste parodia de ella misma. " _
    '   + "Un valle natural conduce al sur."
   
    restore LocData
   
    for i = 0 to NumLocs - 1
        print "numloc i:", i
       
        ' Read the desc
        read locDescs( i )
        print "read numloc i: "; i; locDescs( i )
               
        ' Read the exits
        for j = 0 to NumExits - 1
            print "numloc i:"; i; " exit "; j
            read locExits(i, j)
            print "numloc i:"; i; " exit "; j; " = "; locExits(i, j)
            input a
        next
    next
   
    return
                     
    LocData:
    ' Loc 0 - Landing
    data "El lugar del alunizaje. La vaina abierta y sin  " _
      + "contenido parece una triste parodia de ella misma. " _
      + "Un valle natural conduce al sur."
    data -1, 1, -1, -1, -1, -1
   
    ' Loc 1 - Valley
    data "El lugar del alunizaje. La vaina abierta y sin  " _
      + "contenido parece una triste parodia de ella misma. " _
      + "Un valle natural conduce al sur."
    data 0, -1, -1, -1, -1, -1
end sub


El problema es el siguiente. Si descomento las primeras líneas y comento la línea
Code:
read locDescs( i )
y los data correspondientes, el programa parece que funciona. Pero si dejo el programa tal y como está, solo lee porquería en la posición i del vector locDescs, y el Speccy se reinicia. ¿No se pueden leer cadenas con READ? Según los docs, entiendo que sí...

Print this item

  Discord?
Posted by: StevesGaming - 2024-11-19, 10:24 PM - Forum: Off-Topic - Replies (6)

Does anyone know of a discord server that features a Boriel Basic channel?
(I did a search on here and found one but the link has expired.)

Thanks

Print this item

  New telegram channels
Posted by: boriel - 2024-11-18, 10:13 AM - Forum: ZX Basic Compiler - No Replies

Hi, there

The forum is still alive, yes, but it's clear that the recent waves of spam attack have causes a great damage to our community :-(
In the meantime other tools and communities have emerged around instant messaging (Discord, Telegram, etc).

I've created two official Telegram channels (English, and Spanish). Please follow the invitation links if you're willing to join.


Boriel ZX Basic Compiler
Official channel (English Only)
Invite link:
https://t.me/+ag4E7W05dvRkZmZk

Boriel ZX Basic [ES] (Spanish official channel)
Sobre el compilador Boriel ZX Basic
Enlace de invitación:
https://t.me/+dSbWL8z8ol1lMjA0

Print this item

  Help with Book
Posted by: StevesGaming - 2024-11-16, 08:15 PM - Forum: Help & Support - Replies (4)

Hello, I just registered!

I bought the Boriel Basic book and I'm just on page 52 where it tells you about debugging and adding breakpoints.  but when I add a breakpoint and press F6 I get errors!

"Exception: could not find file C:\zxbasic\helloworld\helloworld.buildtemp.ic"

How do I fix this?   (note: running the code normally with F5 and it works fine)

Thanks

Print this item

  which emulator for spectrum: FUSE or EightyOne
Posted by: funkheld - 2024-11-13, 01:19 PM - Forum: How-To & Tutorials - Replies (2)

hello, good day.

which emulator for the spectrum:
FUSE or EightyOne

which emulator is closer to the hardware?

thanks.
greetings

Print this item

  where can I get help with the memory on the spectrum 128k?
Posted by: funkheld - 2024-11-13, 09:02 AM - Forum: How-To & Tutorials - Replies (9)

hello, good day.

where can I get help with the memory on the spectrum 128k?

thanks.
greetings

Print this item

  where can I find free memory for data on the spectrum 48k if
Posted by: funkheld - 2024-11-13, 09:00 AM - Forum: How-To & Tutorials - Replies (3)

hello, good day.
where can I find free memory for data on the spectrum 48k if
I have made a program with zxbasic?

I want to move data with memcopy.

thanks.
best regards

Print this item

  system routines from spectrum 48k for zxbasic.
Posted by: funkheld - 2024-11-10, 03:02 PM - Forum: How-To & Tutorials - Replies (3)

hello, good day.

I want to buy "the spectrum" at the age of 76.
I come from Germany.
I'm currently playing with the fuse and the zxbasic.
This zxbasic is wonderful.

I also play with the asm from the zxbasic.
I now want to learn how to use the system routines of the spectrum 48k with the zxbasic-asm.

Where can I find a system listing for the spectrum 48k?

thanks.
Best wishes

Print this item

  Error on last version of the compiler (solved)
Posted by: zarsoft - 2024-10-18, 04:22 PM - Forum: Bug Reports - Replies (4)

My program works when compiled in version 116 but does not work when compiled in version 117.

Example:
- select 3 discs.
- move from 1 to 3
- move from 3 to 1

It gives an error in the last version.
(see attached files)
.zip   NewCompiler.zip (Size: 16.87 KB / Downloads: 506)

Print this item