| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 124 online users. » 0 Member(s) | 121 Guest(s) Baidu, Bing, Google
|
| Latest Threads |
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 141
|
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 110
|
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 161
|
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 92
|
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 219
|
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 383
|
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: zedex82
2025-10-05, 07:36 PM
» Replies: 2
» Views: 280
|
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 273
|
ZX Basic Studio Bugs
Forum: Bug Reports
Last Post: Duefectu
2025-09-23, 04:07 PM
» Replies: 5
» Views: 1,083
|
Printing with FZX
Forum: Help & Support
Last Post: boriel
2025-07-17, 10:08 PM
» Replies: 1
» Views: 1,966
|
|
|
| Forgotten JP |
|
Posted by: einar - 2015-09-08, 07:42 PM - Forum: Bug Reports
- Replies (1)
|
 |
NIRVANA demo code ends like this:
Code: DO
...
FOR sprite = 0 TO 7
...
NEXT sprite
LOOP
btiles:
asm
incbin "nirvana.btile"
end asm
Previous versions of ZX BASIC compiled it correctly. Latest version 1.4.0s1964 now compiles it incorrectly, as follows:
Code: __LABEL47:
ld a, 7
ld hl, (_sprite - 1)
cp h
jp c, __LABEL2
__LABEL__btiles:
#line 132
incbin "nirvana.btile"
#line 133
It's now forgetting to generate the last JP corresponding to the DO..LOOP statement!
If you would like to compile it yourself, source code is available here:
https://www.dropbox.com/sh/bgtoq6tdwropz...6dLJZfGASa
|
|
|
| Serious FOR bug in latest dev build s1964 |
|
Posted by: ivorget - 2015-09-06, 03:14 AM - Forum: Help & Support
- Replies (14)
|
 |
Hi,
First, thanks for the compiler it's my first time playing with it.
I think I've found a nasty bug though.
A FOR loop that goes to 255 causes a hang in latest dev build 1.4.1964. Loops to 254 and 256 etc seem to work OK. It's my first time using the compiler so I don't know if it's a new problem or not. It seems to occur regardless of optimisation level.
Code: 10 FOR n=1 TO 255
20 NEXT n
A portion of the generated asm seems to assume the counter is word sized even though it's just a byte so that may be the problem:
Code: __LABEL0:
ld a, 255
ld hl, (_n - 1) <-- looks a bit dodgy
cp h
jp nc, __LABEL3
I'm running python 2.7.6 btw.
Hope that's enough to investigate it...
Colm
|
|
|
| SHIFT bug (*solved*) |
|
Posted by: einar - 2015-08-25, 03:27 PM - Forum: Bug Reports
- Replies (2)
|
 |
Try this:
Code: DIM a AS UBYTE = 3
DIM b AS UBYTE = 2
PRINT a << (3-b)
Attempting to compile this program using latest ZX BASIC version 1.4.0s1953 will produce this error:
Code: Error: Undefined label '__LABEL0'
It will only compile correctly if you disable compiler optimizations using "-O 1".
Previous ZX BASIC version 1.4.0s1935 was able to compile this correctly at any optimization level.
|
|
|
| EXIT WHILE bug (*solved*) |
|
Posted by: einar - 2015-08-19, 06:09 PM - Forum: Bug Reports
- Replies (2)
|
 |
Try compiling this program:
Code: function x() AS UBYTE
return 1
end function
function y() AS UBYTE
return 1
end function
WHILE x()
IF NOT y() THEN
EXIT WHILE
END IF
END WHILE
It will generate the following compile error:
Code: Error: Undefined label '__LABEL1'
Tested with latest ZX BASIC version.
|
|
|
| print42.bas no longer works in build 1935 (*solved*) |
|
Posted by: LTee - 2015-08-09, 05:45 PM - Forum: Bug Reports
- Replies (5)
|
 |
Hi all, it's been a long time! 
I upgraded to 1.4.0 build 1935 today and discovered that I can no longer use the print42 library. This simple program now won't compile any more:
Code: #include <print42.bas>
printat42(0, 0)
print42("42 column printing!")
... giving instead the following error:
Code: test.bas:16: Undeclared identifier "printAt42Coords"
Not a big problem (I just reverted back to build 1923 for now) but I thought you might like to know about it because I'm not sure what else might be affected.
|
|
|
| recreate zxb.exe |
|
Posted by: bosh77 - 2015-08-05, 08:05 PM - Forum: Help & Support
- Replies (2)
|
 |
Hello everyone, I have modified some of the source files .py compiler because I want to create
a version of ZXBasic specific for MSX.
Then I re-created the executable with py2exe with this command: "C:\Python27\python setup.py py2exe"
But the problem is that now the compiler ZXB.EXE It takes a few seconds to complete, whereas before it was instant.
Should I change some settings?
Thank you and best regards.
|
|
|
|