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



Search Forums

(Advanced Search)

Forum Statistics
» Members: 273
» Latest member: Zilog_Z80A
» Forum threads: 962
» Forum posts: 6,053

Full Statistics

Online Users
There are currently 74 online users.
» 0 Member(s) | 73 Guest(s)

Latest Threads
Forum: Wishlist
Last Post: boriel
Yesterday, 03:28 PM
» Replies: 1
» Views: 12
Print color bug
Forum: Bug Reports
Last Post: Darkstar
10-11-2022, 06:57 PM
» Replies: 18
» Views: 987
SIN and COS functions hav...
Forum: Bug Reports
Last Post: boriel
08-17-2022, 06:49 AM
» Replies: 2
» Views: 511
Binary into asm
Forum: Help & Support
Last Post: Nando
08-11-2022, 12:10 PM
» Replies: 12
» Views: 1,698
Set Number Layout to xx.0...
Forum: Help & Support
Last Post: boriel
08-02-2022, 10:32 PM
» Replies: 1
» Views: 471
Using Beepola with ZX BAS...
Forum: How-To & Tutorials
Last Post: Nando
08-02-2022, 09:25 PM
» Replies: 12
» Views: 21,628
Forum: Help & Support
Last Post: boriel
07-25-2022, 12:06 PM
» Replies: 2
» Views: 548
Features breaking compila...
Forum: Core
Last Post: Ljg701
06-19-2022, 08:44 AM
» Replies: 1
» Views: 617
New Text Adventure game u...
Forum: Gallery
Last Post: RandomiserUsr
06-01-2022, 10:21 PM
» Replies: 0
» Views: 460
Testing a variable within...
Forum: Help & Support
Last Post: RandomiserUsr
03-25-2022, 09:59 PM
» Replies: 11
» Views: 4,127

Big Grin mine sweeper
Posted by: Jbizzel - 02-20-2022, 09:03 PM - Forum: Gallery - Replies (2)

I made a mine sweeper game for the zx spectrum.

the code is here. 


I'll release it as a tap file with graphics when its finished.

The game is fully working as it is. just fine tuning everything now.

Print this item

  The sound effect thread
Posted by: worcestersource - 02-19-2022, 12:03 AM - Forum: How-To & Tutorials - Replies (3)

Hello everyone,

I thought this would be a nifty place to pop some routines to make sound effects without resorting to asm.

sub soundBwop()

    dim x, y as uByte

    do until x = 255

        out 254, (y * 8)

        let y = x

        do until y > 239

            let y = y + 16


        let x = x + 1


end sub

Which makes a nice 'bwop' sound. it'll also change your border colour, so add the border value to the out statement to stop it changing colour. For example, for the a blue border:
out 254, (y * 8) + 1

You can play around with this, such as changing the 16 for an 8, or making y count down so the loop duration gets longer each time.


Print this item

Big Grin Kardinal Kid - new game in zx basic
Posted by: Jbizzel - 01-30-2022, 11:37 AM - Forum: Gallery - Replies (2)


[Image: kk.jpg]

Print this item

  Testing a variable within a range
Posted by: worcestersource - 01-27-2022, 08:14 PM - Forum: Help & Support - Replies (11)


I was wondering if there was a better way of testing whether a variable was within a range.

So instead of:

IF a > 0 and a < 30 then...

There was a neater and/or more memory efficient method? These sorts of tricks that can help us eke out every last drop out of zxbasic. Smile



Print this item

Big Grin Frogger 50
Posted by: Jbizzel - 01-23-2022, 02:53 PM - Forum: Gallery - Replies (2)

OK, I've been at it again. 



Cool loading screen
Music - Cars by Gary Newman (Get it???)
New BeeperFX sound routines
The original boasted as many UDG as is possible - now there are even more!
Changes to the graphics
re compiled in ZX Basic
Many code tweaks, changes and improvements

keys are 1,9,0 - I couldn't bring myself to change them.


[Image: Frog.jpg]

Print this item

  snake game
Posted by: Jbizzel - 01-21-2022, 06:06 PM - Forum: Gallery - Replies (1)

He is a game I made while leaning ZX basic

It has 5 levels of speed and some nice beeper tracks Smile

SNAKE game

[Image: 0037666-load-1.scr&border=0]

Print this item

  Problem with compiling game
Posted by: retrofan - 12-29-2021, 03:03 PM - Forum: Help & Support - Replies (1)

On the spectrumcomputing forum we are struggling to compile a frogger basic game with Boriel Compiler.
We have made some progress (in .bas file), but the game is still far from fully functional.

Any help would be welcome...

Attached Files
.zip   frogger_cass50.zip (Size: 4.96 KB / Downloads: 216)
Print this item

  ZXBC to target 128K BIOS ROM
Posted by: RandomiserUsr - 12-27-2021, 02:54 PM - Forum: Help & Support - Replies (2)

Very quick question,

 could ZXBC target a 128K BIOS ROM in the asm compile routines?

I'm expecting a "no" 

Smile Smile

Print this item

  ORG 60000 - LEN(compiled code)
Posted by: zarsoft - 12-03-2021, 09:54 AM - Forum: ZX Basic Compiler - Replies (1)

I want to put the code on top memory.
How do I know the length of the compiled code?

Print this item

  for without next error
Posted by: maeloterkim - 10-10-2021, 02:22 PM - Forum: Help & Support - Replies (3)


I found that if i dont write a  next in a for the compiler only says "error: Unexpected end of file"

pointing to the LAST LINE  of the program

if i only have a few lines is "easy" to find the error

but if i have 2000 or more lines is a crazy thing to find the error

Can the compiler add a rule to search if every FOR have a NEXT and throw the error  "for without next" ?

This way is more easy to find the error in a BIG program with a lot of lines

You can look the example code


dim example as uByte = 0

for example = 0 to 10

    print example

'' THE NEXT MUST GO HERE IN LINE 9 but the compiler logically dont know that
'' BUT Can the compiler say  "error: for without next"
'' instead of "19: error: Unexpected end of file" ?
'' because if we have 2000 or more lines
'' and we dont know what happens
'' is a crazy thing search that error

print "end of program"

Print this item