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 "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
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

 
  Float variable stores only integer value. Why ?
Posted by: Eqx - 2016-10-29, 05:08 AM - Forum: Help & Support - Replies (3)

I'm doing my first tests with ZX Basic. I've tried to create a timer and I found the following issue

Code:
REM timer test DIM t1 as float = 0.00 border 0:paper 0:ink 2:cls while (0=0) t1 = (65536 * peek 23674 +256 * peek 23673 + peek 23672) /50 pause int(10+25*RND) t1 = ((65536 * peek 23674 +256 * peek 23673 + peek 23672) /50) -t1 REM t1 ignores decimal part and has been declared as float print at 0,0;t1 REM result is always 0 or 1 if inkey$="s" then end end if wend

In example, t1 is declared as float but the variable only stores the integer value, and the final result is wrong. In this case print result is always 0 or 1, ignoring the decimal part
There is something that escapes me or i don't understand?
The same example adapted to Sinclair basic displays and store decimal part correctly.

Thanks in advance

Print this item

  bug or missunderstood?
Posted by: Haplo - 2016-10-27, 05:35 PM - Forum: Bug Reports - Replies (5)

Hello, if I run this program:

Code:
cls dim a,b as ubyte dim dw1,dw2 as uinteger dim valor as uinteger a=10 b=5 valor=a*b print "valor:";valor a=100 valor=a*b print "valor:";valor valor=10000 print "valor:";valor print valor=a*b print "valor:";valor print dw1=10 dw2=5 valor=dw1*dw2 print "valor:";valor dw1=100 valor=dw1*dw2 print "valor:";valor

the output in screen is:

valor:50
valor:244
valor:10000

valor:244

valor:50
valor:500

This is a bug?

Print this item

  Radastan mode in ZX Basic
Posted by: symbolshift - 2016-10-17, 11:29 AM - Forum: How-To & Tutorials - Replies (7)

Hi everyone !

I'm new to this forum. Been using Boriel's Basic for about a year and now that I own a ZXUNO would like to use the Radastan Mode for making simple games.

I've read an old topic with a Plot routine. Are there more I could use? I know there is a kit in C by Radastan himself, but I'd be happy if I could continue programming with ZX Basic.

Thanks in advance and THANK YOU Boriel for bringing me back the joy of writing programs for my beloved ZX Spectrum.

Print this item

  Passing strings to assembler
Posted by: Uto - 2016-10-09, 12:28 PM - Forum: Help & Support - Replies (1)

Hi,

I have this code:

Code:
..... PRINT "Please enter text:" LET a$= INPUT(8) SAVEFILE(a$) ..... SUB fastcall SAVEFILE(name as String) ASM ..... END ASM END SUB

I need to get the string value in the ASM function, and I was expecting having a pointer to it as the second value in stack (so POP HL, POP DE, PUSH HL will keep the return adress in stack and DE as pointer to the string), but it doesn't seem to work like that, How could I get the string parameter from assembler?

Print this item

  [alphadenshisega-championbaseball] first test
Posted by: nitrofurano - 2016-08-01, 06:38 PM - Forum: Other Archs - No Replies

first test for the Alphadenshi/Sega’s Champion Baseball 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_-_AlphadenshiSegaChampionBaseball">http://www.boriel.com/wiki/en/index.php ... onBaseball</a><!-- m --> )



Attached Files
.zip   example01c_working.zip (Size: 29.32 KB / Downloads: 1,052)
Print this item

  Using ZX Basic to create ESXDOS dot commands
Posted by: Uto - 2016-07-16, 01:18 PM - Forum: Help & Support - Replies (5)

Hello all,

I'm new to ZXBasic, but despite of that I've managed to properly build and application using it (<!-- m --><a class="postlink" href="https://github.com/Utodev/ZXCU">https://github.com/Utodev/ZXCU</a><!-- m -->). I've found ZXBasic and its extension a great help to build that application, so first of all, thank you for building this tool.

The application is a menu driven setup application for Zx-Uno spectrum clone, built for latest core avaliable so far. While providing this application as .tap file may be OK, I wanted to try to compile it so it is a ESXDOS dot command, that may be invoked just by .zxuc.

I have built small ESXDOS dot commands before (just proofs of concept), made in assembler, and all that I know, considering they are undocummented, is:

- They are raw machine code binary files, that is, if first instruction is RET the dot command does nothing but returning to prompt. There is no header.
- They start at 0x4000 (ORG 8192)
- They apparently have 8K maximum size (largest one included with ESXDOS, .snaload, takes almost thos 8K)

I have compiled my code using -S 8192 option, but when y run .zxuc ZXUno freezes. I have also tried to compile a very simple code, and do the same, and in that case it doesn't freeze, but it does nothing.

Code:
PRINT "Hello World"

Compiling that code into a .hello command just returns with OK, without printing "Hello World"

I have decompiled what ZXBasic compiles and first instructions are what is expected, but it's way too complicated to debug furthermore.

I have also tried to reduce heap size with -H parameter, but nothing changes.

Any idea what may be wrong?

Print this item

  Radastan Mode
Posted by: PeekPoke - 2016-07-15, 04:59 PM - Forum: Help & Support - Replies (10)

Hi to all members of this forum, Big Grin

Are there tutorials on how to use Radastan Mode ( 128 x 96 pixels, 16 colours)
with ZX Basic please ?

Thank you very much.

Print this item

  Exit code -1 cause found (SGN)
Posted by: LCD - 2016-07-13, 05:55 PM - Forum: Bug Reports - Replies (2)

If I have a unsigned variable (e.g. UBYTE) and want a SGN of it, the compiler produces a warning that it can then be only 0 or 1, but the compiler exits with exit code -1. Should be the warning not mean, it can be compiled anyway?
I'm using version 1.4.0s1968.

Print this item

  [dyna-royalcasino] first test
Posted by: nitrofurano - 2016-07-02, 10:30 PM - Forum: Other Archs - No Replies

A test demo for Dyna’s Royal Casıno 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_-_DynaRoyalCasino">http://www.boriel.com/wiki/en/index.php ... oyalCasino</a><!-- m --> )



Attached Files
.zip   example01f_working.zip (Size: 22.25 KB / Downloads: 1,090)
Print this item

  [ace-sidewinder] first test
Posted by: nitrofurano - 2016-07-02, 04:28 PM - Forum: Other Archs - No Replies

first test for the Ace’s Sidewinder 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_-_AceSidewinder">http://www.boriel.com/wiki/en/index.php ... Sidewinder</a><!-- m --> )



Attached Files
.zip   example01e_startingtowork.zip (Size: 26.99 KB / Downloads: 1,030)
Print this item