Forum
ZX Basic 1.4 (beta) is out - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+--- Thread: ZX Basic 1.4 (beta) is out (/showthread.php?tid=580)

Pages: 1 2 3


Re: ZX Basic 1.4 (beta) is out - boriel - 02-01-2014

apenao Wrote:I have done 3 test involving some of the programs in the example folder included with ZXBC:

Pong doesn't compile. It returns a long list of warnings.
Scroll doesn't compile (but it does not compile in 1.3 versión either)
Spfill compiles but it behaves incorrectly (doesn't fill with the expected pattern, while it behaves correctly if compiled with the 1.3 versión).

Others, like clock or freregustav are working OK.
Scroll routines ENDED :!:
Download version 1.4.0s1785 and run the demo.
Windowed scroll is now available :mrgreen:


Re: ZX Basic 1.4 (beta) is out - ardentcrest - 02-05-2014

like to new update and a bit of how to use the code :0


Re: ZX Basic 1.4 (beta) is out - boriel - 02-06-2014

Please, Ardencret, download 1.4.0s1853
It now includes soporte for Spectranet but the syntax is not the same as BASIC. As an example:
Code:
#include <spectranet.bas>

10 LET mpoint = 0 : REM 0..3
20 SNETmount(mpoint, "tnfs", "192.168.1.100", "", "", "")
30 LET f = SNETfopen(mpoint, "screen.bin", "r")
40 SNETfread(f, 16384, 2048)
50 SNETfclose(f)



Re: ZX Basic 1.4 (beta) is out - ardentcrest - 02-06-2014

boriel Wrote:Please, Ardencret, download 1.4.0s1853
It now includes soporte for Spectranet but the syntax is not the same as BASIC. As an example:
Code:
#include <spectranet.bas>

10 LET mpoint = 0 : REM 0..3
20 SNETmount(mpoint, "tnfs", "192.168.1.100", "", "", "")
30 LET f = SNETfopen(mpoint, "screen.bin", "r")
40 SNETfread(f, 16384, 2048)
50 SNETfclose(f)

Quote: 12:36:02 -> Compilation starts(7 Lines)
 12:36:02 -> Source G:\Game software\dist\new.bor saved
 12:36:02 -> G:\Game software\dist\zxb.exe "temp.bor" -S 24200 -o "G:\Game software\dist\testfiles\output.bin"

 12:36:08 -> Exit code: 0

spectranet.bas:67: warning: FUNCTION 'SNETbind' declared as FASTCALL with 2 parameters

 12:36:08 -> Done: Compilation successfull
 12:36:08 -> FAIL: Compiler cannot write output file in directory (Protected Or does Not exist?)
 12:36:08 -> Compilation time: 6031ms
"C:\Program Files\Fuse\fuse.exe" "G:\Game software\dist\testfiles\output.tap"


Is it looking for the port address ie 16384

test file crashes


Re: ZX Basic 1.4 (beta) is out - ardentcrest - 02-06-2014

Quote:Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

G:\Game software\dist>zxb -t test.bas
spectranet.bas:67: warning: FUNCTION 'SNETbind' declared as FASTCALL with 2 para
meters
spectranet.bas:94: warning: FUNCTION 'SNETconnect' declared as FASTCALL with 3 p
arameters
spectranet.bas:121: warning: FUNCTION 'SNETrecv' declared as FASTCALL with 3 par
ameters
spectranet.bas:133: warning: FUNCTION 'SNETsend' declared as FASTCALL with 3 par
ameters
spectranet.bas:291: warning: FUNCTION 'SNETfread' declared as FASTCALL with 3 pa
rameters
spectranet.bas:315: warning: FUNCTION 'SNETfwrite' declared as FASTCALL with 3 p
arameters
spectranet.bas:382: warning: FUNCTION 'SNETfseek' declared as FASTCALL with 3 pa
rameters
test.bas:3: warning: Using default implicit type 'ubyte' for 'mpoint'
test.bas:6: warning: Using default implicit type 'byte' for 'f'

G:\Game software\dist>



Re: ZX Basic 1.4 (beta) is out - cheveron - 02-08-2014

boriel Wrote:It now includes soporte for Spectranet but the syntax is not the same as BASIC.

This means it will now be possible to make ZXodus games without any limits on the size of the game data. Unlimited sound tracks, unlimited tile sets, unlimited dialog, unlimited towns, unlimited world map size, multiple worlds. You'll also be able to use ZXodus to write an MORPG. If anyone plans on doing any of that then I'd start creating the data now, as just doing the data for a 128K game has taken me a very long time.


Re: ZX Basic 1.4 (beta) is out - boriel - 02-08-2014

ardentcrest Wrote:
Quote:Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

G:\Game software\dist>zxb -t test.bas
spectranet.bas:67: warning: FUNCTION 'SNETbind' declared as FASTCALL with 2 para
meters
spectranet.bas:94: warning: FUNCTION 'SNETconnect' declared as FASTCALL with 3 p
arameters
spectranet.bas:121: warning: FUNCTION 'SNETrecv' declared as FASTCALL with 3 par
ameters
spectranet.bas:133: warning: FUNCTION 'SNETsend' declared as FASTCALL with 3 par
ameters
spectranet.bas:291: warning: FUNCTION 'SNETfread' declared as FASTCALL with 3 pa
rameters
spectranet.bas:315: warning: FUNCTION 'SNETfwrite' declared as FASTCALL with 3 p
arameters
spectranet.bas:382: warning: FUNCTION 'SNETfseek' declared as FASTCALL with 3 pa
rameters
test.bas:3: warning: Using default implicit type 'ubyte' for 'mpoint'
test.bas:6: warning: Using default implicit type 'byte' for 'f'

G:\Game software\dist>
You can safely compile with these warnings. I'm still working on a ZX BASIC no-warning XXX scheme.


Re: ZX Basic 1.4 (beta) is out - LCD - 02-11-2014

Tests started:
"Yumiko in the haunted Mansion":
Undeclared identifier "label"
Code:
POKE @label+1,variable
I do such stuff in other games too
"U-Boot Hunt":
Works!
"Hunt the Wumpus":
Exit code = 255 (-1) - Works with 1.3. I will upload the source later.
"Earthraid":
Exit code = 255 (-1)
"Quest for Witchcraft":
Works
"Chessboard Attack":
Undeclared identifier "label"

ATM thats all...


Re: ZX Basic 1.4 (beta) is out - ardentcrest - 02-11-2014

Would be nice to have the borIDE working with the new updates LCD


Re: ZX Basic 1.4 (beta) is out - boriel - 02-11-2014

LCD Wrote:Tests started:
"Yumiko in the haunted Mansion":
Undeclared identifier "label"
Code:
POKE @label+1,variable
I do such stuff in other games too
"U-Boot Hunt":
Works!
"Hunt the Wumpus":
Exit code = 255 (-1) - Works with 1.3. I will upload the source later.
"Earthraid":
Exit code = 255 (-1)
"Quest for Witchcraft":
Works
"Chessboard Attack":
Undeclared identifier "label"

ATM thats all...
LCD can you pass me the tiniest piece of code (or the entire source) privately to check for this?


Re: ZX Basic 1.4 (beta) is out - LCD - 02-11-2014

ardentcrest Wrote:Would be nice to have the borIDE working with the new updates LCD

But I use it with the latest version... Have you specified a output file? (preference does not work, you NEED to specify one)

@boriel: I sent two messages with sources.


Re: ZX Basic 1.4 (beta) is out - ardentcrest - 02-12-2014

LCD Wrote:
ardentcrest Wrote:Would be nice to have the borIDE working with the new updates LCD

But I use it with the latest version... Have you specified a output file? (preference does not work, you NEED to specify one)

@boriel: I sent two messages with sources.


Quote: 12:36:02 -> Compilation starts(7 Lines)
 12:36:02 -> Source G:\Game software\dist\new.bor saved
 12:36:02 -> G:\Game software\dist\zxb.exe "temp.bor" -S 24200 -o "G:\Game software\dist\testfiles\output.bin"

 12:36:08 -> Exit code: 0

spectranet.bas:67: warning: FUNCTION 'SNETbind' declared as FASTCALL with 2 parameters

 12:36:08 -> Done: Compilation successfull
 12:36:08 -> FAIL: Compiler cannot write output file in directory (Protected Or does Not exist?)
 12:36:08 -> Compilation time: 6031ms
"C:\Program Files\Fuse\fuse.exe" "G:\Game software\dist\testfiles\output.tap"



Re: ZX Basic 1.4 (beta) is out - LCD - 02-12-2014

ardentcrest Wrote:
LCD Wrote:
ardentcrest Wrote:Would be nice to have the borIDE working with the new updates LCD

But I use it with the latest version... Have you specified a output file? (preference does not work, you NEED to specify one)

@boriel: I sent two messages with sources.


Quote: 12:36:02 -> Compilation starts(7 Lines)
 12:36:02 -> Source G:\Game software\dist\new.bor saved
 12:36:02 -> G:\Game software\dist\zxb.exe "temp.bor" -S 24200 -o "G:\Game software\dist\testfiles\output.bin"

 12:36:08 -> Exit code: 0

spectranet.bas:67: warning: FUNCTION 'SNETbind' declared as FASTCALL with 2 parameters

 12:36:08 -> Done: Compilation successfull
 12:36:08 -> FAIL: Compiler cannot write output file in directory (Protected Or does Not exist?)
 12:36:08 -> Compilation time: 6031ms
"C:\Program Files\Fuse\fuse.exe" "G:\Game software\dist\testfiles\output.tap"

check your games .cfg file, what is written after "OutputFile = "?


Re: ZX Basic 1.4 (beta) is out - ardentcrest - 02-12-2014

no .cfg file created just .bmi .bin


Re: ZX Basic 1.4 (beta) is out - boriel - 02-13-2014

LCD: Okay, I've upload ZX Basic 1.4.0s1860. Please download and try if it fixes something. It has 2 bugs fixed.