The following warnings occurred:
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "bas" - Line: 4649 - File: inc/functions.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/functions.php 4649 errorHandler->error_callback
/inc/functions_post.php 1034 get_attachment_icon
/portal.php 673 get_post_attachments
Warning [2] Trying to access array offset on value of type null - Line: 4649 - File: inc/functions.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/functions.php 4649 errorHandler->error_callback
/inc/functions_post.php 1034 get_attachment_icon
/portal.php 673 get_post_attachments
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval




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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 274
» Latest member: zxspecticle
» Forum threads: 1,086
» Forum posts: 6,487

Full Statistics

Online Users
There are currently 265 online users.
» 0 Member(s) | 264 Guest(s)
Bing

Latest Threads
New video Couse / Nuevo c...
Forum: News
Last Post: Duefectu
2026-04-29, 11:02 PM
» Replies: 0
» Views: 214
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 485
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 1,301
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 1,389
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 2,080
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 1,080
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 1,179
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 630
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 1,218
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 1,381

 
  Sprites & ATTR
Posted by: jonesypeter - 2016-06-26, 09:13 PM - Forum: Help & Support - Replies (2)

Hi,

I'm quite new to ZX Basic, and just had a few questions:

Is the replacement for the Sinclair BASIC ATTR command attrAdress(x,y)?

Are there any linked sprite libraries that let you use Sprites (larger than 8*8) from BASIC? I did look at the Spanish Fourspriter tutorial, but Google translate is not great with technical translations. Is there an English Language tutorial, and are there any other libraries, without the need to use Assembler?

Thanks

Print this item

  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: 1,477)
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: 1,083)
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: 1,359)
Print this item