Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 212 online users. » 0 Member(s) | 211 Guest(s) Bing
|
Latest Threads |
Strange Happenings
Forum: Bug Reports
Last Post: zedex82
9 hours ago
» Replies: 0
» Views: 6
|
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 369
|
Exit from more than one l...
Forum: Wishlist
Last Post: Duefectu
04-23-2025, 10:06 PM
» Replies: 3
» Views: 310
|
put small ASM programs li...
Forum: How-To & Tutorials
Last Post: Zoran
04-18-2025, 02:02 PM
» Replies: 6
» Views: 1,621
|
Creating +3 Menus - Loadi...
Forum: Help & Support
Last Post: merlinkv
04-16-2025, 02:08 PM
» Replies: 6
» Views: 571
|
Randomize not very random...
Forum: Help & Support
Last Post: Zoran
04-08-2025, 10:40 AM
» Replies: 4
» Views: 910
|
Scope rules
Forum: Bug Reports
Last Post: Zoran
04-04-2025, 09:46 AM
» Replies: 2
» Views: 354
|
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,078
|
404 page not found
Forum: Documentation
Last Post: boriel
03-08-2025, 07:16 PM
» Replies: 5
» Views: 2,903
|
Spectrum keywords codes
Forum: Bug Reports
Last Post: boriel
03-08-2025, 11:00 AM
» Replies: 1
» Views: 426
|
|
|
Forgotten JP |
Posted by: einar - 09-08-2015, 06: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 - 09-06-2015, 02: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 - 08-25-2015, 02: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 - 08-19-2015, 05: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 - 08-09-2015, 04: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 - 08-05-2015, 07: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.
|
|
|
|