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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 273
» Latest member: mindlin
» Forum threads: 1,085
» Forum posts: 6,486

Full Statistics

Online Users
There are currently 79 online users.
» 0 Member(s) | 78 Guest(s)
Google

Latest Threads
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 216
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 692
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 1,067
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 1,677
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 812
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 935
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 475
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 945
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 1,109
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 839

 
  Unexpected token 'NEXT'
Posted by: gunduzs - 2016-05-23, 08:09 PM - Forum: Help & Support - Replies (1)

Hello,

this is my 1st post! Total newbie.

I just typed in the 1st program in the book "ZX Spectrum Games Code Club: Twenty fun games to code and learn" by Gary Plowman (from Amazon),
but when I attempt a "zxb ex1.bas" , it throws up a couple of errors.
I've checked the code and it appears valid. Any ideas on what the problem could be?

(I've attached the .bas file)

Regards



Attached Files
.bas   ex1.bas (Size: 3 KB / Downloads: 139)
Print this item

  One more optimizer bug (*solved*)
Posted by: einar - 2016-05-07, 05:46 PM - Forum: Bug Reports - Replies (7)

File "test.bas":

Code:
sub test()
    asm
        ld      hl, 56469
        ld      de, 5
        ld      (hl), e
        inc     l
        ld      (hl), d
;        ret
    end asm
end sub

test()

Trying to compile it:

Code:
>zxb.exe -t -O3 test.bas -o test.tap
Traceback (most recent call last):
  File "zxb.py", line 348, in <module>
  File "zxb.py", line 301, in main
  File "optimizer.pyc", line 2290, in optimize
  File "optimizer.pyc", line 1949, in optimize
  File "optimizer.pyc", line 680, in op
  File "optimizer.pyc", line 538, in inc
  File "optimizer.pyc", line 432, in set
TypeError: unsupported operand type(s) for <<: 'NoneType' and 'int'

Compiling it without "-O3" works just fine.

Print this item

  Lamega
Posted by: rikokun - 2016-04-24, 10:34 PM - Forum: Gallery - Replies (3)

Hi guys.

I was kinda bored this weekend (being at work and such), so i was making this little thing.
It's no good game by any means, but i had fun coding it and thats what matters to me ^_^
It's called Lamega, as in Lame Galaga ^_^

[Image: KDV0EeF.png]

You can get it here: https://drive.google.com/open?id=0Bw3kIW...zRlQzhnVmc

PS: If you wonder what's the difference between levels, the baddies descent quicker...

Print this item

  Control codes
Posted by: rikokun - 2016-04-18, 11:02 PM - Forum: Help & Support - Replies (6)

Hi
I'm new here, so excuse me if anyone asked this before. I tryed to search for it but didnt find anything.

So i'm playing with ZX basic for last week or so and i was doing some of my usual tests.
In one of them i was trying to print out a block of characters with random ink and color. And because making a loop that will print it character by character is rather slow, i tryed to be clever. It didn't work ^_^

So my problem:

i wanted to make a string variable with control codes that i would print out. And sure enough if i do

p$="\{i5}X"
print p$

it work just fine.


Problem is when i want to put some randomness to it and do something like

i$=str(int(rnd*7))
p$="\{i"+i$+"}X"
print p$

it outputs

\{i2}X

instead of colored X. In my mind, it should work...
Am i doing something wrong?

Also, implementing AT as \{ax,y} like it works in BASin would be nice ^_^

Thanks for your help

Print this item

  [zx81] slideshow
Posted by: nitrofurano - 2016-04-04, 11:15 AM - Forum: Other Archs - Replies (2)

just a simple slideshow for zx81 (as seen at https://zxbasic.readthedocs.io/en/docs/r...rams/zx81/ )



Attached Files
.zip   example02j2_slideshow2.zip (Size: 17.34 KB / Downloads: 1455)
Print this item

  [meadows-warpspeed] first test
Posted by: nitrofurano - 2016-03-30, 09:16 PM - Forum: Other Archs - No Replies

first test for the Meadows’ Warp Speed arcade machine
( the wiki page related to this thread is at <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_MeadowsWarpSpeed#test01">http://www.boriel.com/wiki/en/index.php ... eed#test01</a><!-- m --> )



Attached Files
.zip   example01b_startingtowork.zip (Size: 14.82 KB / Downloads: 1064)
Print this item

  INPUT problems
Posted by: 365Ink - 2016-03-24, 10:03 PM - Forum: Help & Support - Replies (1)

INPUT wont be recognized by the compiler! Help! Is there any workaround?

Print this item

  INPUT problem
Posted by: 365Ink - 2016-03-24, 09:16 PM - Forum: Bug Reports - Replies (1)

Hello everyone!
I have this slight problem with INPUT. INPUT seems to be unrecognized by the compiler. Wherever I put input it just wouldnt work. Is there any workaround? Thanks.

Print this item

  [gx4000] some tests
Posted by: nitrofurano - 2016-03-23, 09:14 PM - Forum: Other Archs - Replies (2)

just some tests - this one is for cpc+ (gx4000) display mode 1 (as shown at <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:Released_Programs_-_AmstradCPC#test01_displaymode1">http://www.boriel.com/wiki/en/index.php ... splaymode1</a><!-- m --> )



Attached Files
.zip   test01m4b_mode1_putcharwritetextjoystick_zxspectrumdisplaysize.zip (Size: 15.77 KB / Downloads: 1338)
Print this item

  Wish Add Betadisk Syntax
Posted by: Luzie - 2016-02-23, 08:31 PM - Forum: Wishlist - Replies (3)

Hi,

my wish:

Can you please add Betadisk-BASIC-Syntax:

Betadisk 48k TRDOS v4 e.g.: RANDOMIZE USR 15363: REM: SAVE "X" CODE 16384,6912
or:
Betadisk 128k TRDOS v5 e.g.: RANDOMIZE USR 15619: REM: SAVE "X" CODE 16384,6912

Both change the adress of the BASIC-interpreter to point behind the REM: and than do a call to ROM
Betadisk 48k TRDOS v4 to: 15363
or:
Betadisk 128k TRDOS v5 to: 15619

and after that restore the BASIC-interpreter-pointer to the next line

Regards,

Luzie

Print this item