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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 258
» Latest member: manuelzo75
» Forum threads: 1,074
» Forum posts: 6,434

Full Statistics

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

Latest Threads
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 189
Exit from more than one l...
Forum: Wishlist
Last Post: Duefectu
04-23-2025, 10:06 PM
» Replies: 3
» Views: 258
put small ASM programs li...
Forum: How-To & Tutorials
Last Post: Zoran
04-18-2025, 02:02 PM
» Replies: 6
» Views: 1,521
Creating +3 Menus - Loadi...
Forum: Help & Support
Last Post: merlinkv
04-16-2025, 02:08 PM
» Replies: 6
» Views: 512
Randomize not very random...
Forum: Help & Support
Last Post: Zoran
04-08-2025, 10:40 AM
» Replies: 4
» Views: 414
Scope rules
Forum: Bug Reports
Last Post: Zoran
04-04-2025, 09:46 AM
» Replies: 2
» Views: 287
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,014
404 page not found
Forum: Documentation
Last Post: boriel
03-08-2025, 07:16 PM
» Replies: 5
» Views: 2,852
Spectrum keywords codes
Forum: Bug Reports
Last Post: boriel
03-08-2025, 11:00 AM
» Replies: 1
» Views: 395
ZXodus][Engine
Forum: ZX Basic Compiler
Last Post: boriel
02-19-2025, 11:43 PM
» Replies: 69
» Views: 213,483

 
  WHILE Loop vs FOR/NEXT Loop
Posted by: RandomiserUsr - 03-12-2022, 10:05 AM - Forum: Help & Support - Replies (2)

Hi, quick question:


Programming styles aside which performs better at run time, WHILE or FOR/NEXT ?

I will guess with both are the same? :-)

Thanks

Print this item

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. 


https://gitlab.com/JB1zzel1/mine-sweeper-zx-spectrum


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.

Code:
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

        loop

        let x = x + 1

    loop

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:
Code:
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.

Steve

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)

here

[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)

Hello!

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

So instead of:

Code:
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

Cheers,


Steve

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. 

FROGGER 50

Changes:

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.




https://www.spectrumcomputing.co.uk/foru...f=3&t=6287

[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.
https://spectrumcomputing.co.uk/forums/v...=21&t=6057
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: 645)
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" 

thanks 
Smile Smile

Print this item

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

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

Print this item