Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZX Basic 1.4 (beta) is out
#16
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:
Reply
#17
like to new update and a bit of how to use the code :0
I'm always on the chat or facebook.
Reply
#18
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)
Reply
#19
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


Attached Files
.tap   test.tap (Size: 3.83 KB / Downloads: 402)
I'm always on the chat or facebook.
Reply
#20
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>
I'm always on the chat or facebook.
Reply
#21
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.
Reply
#22
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.
Reply
#23
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!
Reply
#24
Would be nice to have the borIDE working with the new updates LCD
I'm always on the chat or facebook.
Reply
#25
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?
Reply
#26
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!
Reply
#27
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"
I'm always on the chat or facebook.
Reply
#28
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 = "?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#29
no .cfg file created just .bmi .bin
I'm always on the chat or facebook.
Reply
#30
LCD: Okay, I've upload ZX Basic 1.4.0s1860. Please download and try if it fixes something. It has 2 bugs fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)