FAQ  •  Register  •  Login

ZX Basic 1.4 (beta) is out

<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Feb 01, 2014 2:04 am

Re: ZX Basic 1.4 (beta) is out

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

ardentcrest

Posts: 94

Joined: Fri Oct 11, 2013 5:19 pm

Post Wed Feb 05, 2014 11:42 pm

Re: ZX Basic 1.4 (beta) is out

like to new update and a bit of how to use the code :0
I'm always on the chat or facebook.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Feb 06, 2014 10:13 am

Re: ZX Basic 1.4 (beta) is out

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

ardentcrest

Posts: 94

Joined: Fri Oct 11, 2013 5:19 pm

Post Thu Feb 06, 2014 12:37 pm

Re: ZX Basic 1.4 (beta) is out

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)


 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
Attachments
test.tap
(3.83 KiB) Downloaded 281 times
I'm always on the chat or facebook.
<<

ardentcrest

Posts: 94

Joined: Fri Oct 11, 2013 5:19 pm

Post Thu Feb 06, 2014 7:36 pm

Re: ZX Basic 1.4 (beta) is out

Microsoft Windows XP [Version 5.1.2600]
(C) 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>
I'm always on the chat or facebook.
<<

cheveron

User avatar

Posts: 71

Joined: Sat Dec 11, 2010 11:22 pm

Post Sat Feb 08, 2014 1:51 am

Re: ZX Basic 1.4 (beta) is out

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

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Feb 08, 2014 9:06 am

Re: ZX Basic 1.4 (beta) is out

ardentcrest wrote:
Microsoft Windows XP [Version 5.1.2600]
(C) 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.
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Tue Feb 11, 2014 2:35 pm

Re: ZX Basic 1.4 (beta) is out

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...
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

ardentcrest

Posts: 94

Joined: Fri Oct 11, 2013 5:19 pm

Post Tue Feb 11, 2014 5:07 pm

Re: ZX Basic 1.4 (beta) is out

Would be nice to have the borIDE working with the new updates LCD
I'm always on the chat or facebook.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Tue Feb 11, 2014 7:56 pm

Re: ZX Basic 1.4 (beta) is out

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

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Tue Feb 11, 2014 11:50 pm

Re: ZX Basic 1.4 (beta) is out

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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

ardentcrest

Posts: 94

Joined: Fri Oct 11, 2013 5:19 pm

Post Wed Feb 12, 2014 7:30 am

Re: ZX Basic 1.4 (beta) is out

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.



 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"
I'm always on the chat or facebook.
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Wed Feb 12, 2014 9:22 am

Re: ZX Basic 1.4 (beta) is out

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.



 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 = "?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

ardentcrest

Posts: 94

Joined: Fri Oct 11, 2013 5:19 pm

Post Wed Feb 12, 2014 10:19 pm

Re: ZX Basic 1.4 (beta) is out

no .cfg file created just .bmi .bin
I'm always on the chat or facebook.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Feb 13, 2014 12:09 am

Re: ZX Basic 1.4 (beta) is out

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

Return to ZX Basic Compiler

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO