| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 204 online users. » 0 Member(s) | 204 Guest(s)
|
| Latest Threads |
New video Couse / Nuevo c...
Forum: News
Last Post: Duefectu
2026-04-29, 11:02 PM
» Replies: 0
» Views: 213
|
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,299
|
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,079
|
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,217
|
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 1,381
|
|
|
| Different Result with one more empty line (*solved*) |
|
Posted by: Luzie - 2016-12-20, 11:08 PM - Forum: Bug Reports
- Replies (5)
|
 |
Hi,
I tried ZX Basic Latest Development Version latest stable version (1.4.0s1968) with BorIDE and discovered the following:
When I compiled a program source-Code with 4 empty lines in it, it crashes the program on my ZX Spectrum.
ALL_IN_ONE_v4_AND_v5_MCODE_DIR.zip (Size: 7.78 KB / Downloads: 1,143)
When I delete one of those 4 empty lines so I have only 3 empty lines, the program runs without crashing.
TRDOS_v5_MCODE_CAT_to_SCREEN_TEST8_ERROR.zip (Size: 1.29 KB / Downloads: 1,210)
I tested with ZX Basic Current Stable Version 1.3.0s1121 and with this, the program runs without crashing
with four or three empty lines.
Tested some more.... with a bigger sourcecode, I also discover the crash,
even on ZX Basic Current Stable Version 1.3.0s1121
TRDOS_v5_MCODE_CAT_to_SCREEN_TEST6_ERROR.zip (Size: 1.29 KB / Downloads: 1,233)
Could you please tell me, what I should avoid in my sourcecodes e.g. foreign characters, empty lines or so?
As I only use ZX Basic with BorIDE for now - is there a way to discover compile errors from windows commandline?
|
|
|
| Different result than expected when poking to screen |
|
Posted by: emook - 2016-12-10, 10:31 PM - Forum: ZX Basic Compiler
- Replies (5)
|
 |
Hello,
In normal basic we can do this following code :
Code: 10 BORDER 0: PAPER 0: INK 6: CLS
20 FOR i=1 TO 7
30 FOR y=0 TO 21
40 FOR x=0 TO 31
50 LET l=22528+x+y*32
60 POKE l,8*i
70 NEXT x
80 NEXT y
90 NEXT i
![[Image: tK1VcJ5.png]](http://imgur.com/tK1VcJ5.png)
To fill the screen with the desired colour (I know this example seems pointless, but the same method to poke a screen char is used quite a bit for me)
however, in ZXB it only seems to pokes to the top third of the screen :
Code: border 0
paper 0
ink 6
cls
dim i as ubyte
dim x as ubyte
dim y as ubyte
dim l as uinteger
FOR i=1 TO 6
FOR y=0 TO 23
FOR x=0 TO 31
l=22528+x+y*32
POKE l,8*i
NEXT
NEXT
NEXT
![[Image: UdGaSL2.png]](http://i.imgur.com/UdGaSL2.png)
Anyone know what I am doing wrong here?
Thanks!
|
|
|
|