FAQ  •  Register  •  Login

Different Result with one more empty line (*solved*)

<<

Luzie

Posts: 32

Joined: Thu Nov 05, 2015 9:11 pm

Post Tue Dec 20, 2016 10:08 pm

Different Result with one more empty line (*solved*)

Hi,

I tried ZX Basic Latest Development Version latest stable version (1.4.0s1968) with BorIDE and discovered the following:

When I compiled a program source-Code with 4 empty lines in it, it crashes the program on my ZX Spectrum.
TRDOS_v5_MCODE_CAT_to_SCREEN_TEST6_ERROR.zip
(1.29 KiB) Downloaded 29 times

When I delete one of those 4 empty lines so I have only 3 empty lines, the program runs without crashing.
TRDOS_v5_MCODE_CAT_to_SCREEN_TEST8_ERROR.zip
(1.29 KiB) Downloaded 28 times

I tested with ZX Basic Current Stable Version 1.3.0s1121 and with this, the program runs without crashing
with four or three empty lines.

Tested some more.... with a bigger sourcecode, I also discover the crash,
even on ZX Basic Current Stable Version 1.3.0s1121
ALL_IN_ONE_v4_AND_v5_MCODE_DIR.zip
(7.78 KiB) Downloaded 27 times

Could you please tell me, what I should avoid in my sourcecodes e.g. foreign characters, empty lines or so?
As I only use ZX Basic with BorIDE for now - is there a way to discover compile errors from windows commandline?
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Dec 23, 2016 12:58 am

Re: Different Result with one more empty line on 1.4.0s1968

I cannot debug your source code (need TR-DOS?). If you tell me how can I emulate this I would be grateful.

I have compiled both listings with zxb --asm to get the assembler listing, and both listings return the same output code.
You can check the generated asm with zxb --asm
If the generated asm varies if you change the comments or blank lines, this is definitely a compiler bug.
But I cannot reproduce your problem (the generated ASM is always the same).
The only difference I see is some static strings "written in Boriel ZX BASIC with ..." being placed after o before the string "TRDOS_v5_MCODE_CAT_to_SCREEN_TEST6_ERROR" sometimes. This should not affect your execution unless TR-DOS or your system is doing something with memory pagination or the like.

Can you try your files out of BorIDE and compile them from the command line with zxb -TaB <yourfile.bor> ?
<<

Luzie

Posts: 32

Joined: Thu Nov 05, 2015 9:11 pm

Post Tue Dec 27, 2016 10:31 pm

Re: Different Result with one more empty line on 1.4.0s1968

boriel wrote:ICan you try your files out of BorIDE and compile them from the command line with zxb -TaB <yourfile.bor> ?

Thanks for your suggestion. Compiling both files with ZXB generate the same .TZX-FIles and both run well under the SpecEmu Emulator I use.

So it seems to be an issue of BorIDE.

I´ll test some more next days and write my results back here then.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Wed Jun 28, 2017 4:50 pm

Re: Different Result with one more empty line on 1.4.0s1968

Any news on this?
<<

Luzie

Posts: 32

Joined: Thu Nov 05, 2015 9:11 pm

Post Wed Jun 28, 2017 8:25 pm

Re: Different Result with one more empty line on 1.4.0s1968

boriel wrote:Any news on this?

It´s really an Issue of BorIDE. Tested yet many times. Compiles not from within BorIDE but compiles without problems when compiled from commandline.
(Tried with ZXB 1.6.2).

I compared and testet BorIDE .CFG-Files (Configfiles for BorIDE) but cannot find out whats the problem.

I think you could mark this thread with *SOLVED* as it´s not an issue with ZXB!

I now use commandline for compiling this source-codes.

Regards,

Luzie
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Wed Jun 28, 2017 10:37 pm

Re: Different Result with one more empty line on 1.4.0s1968

Ok. Will put a (*solved*) but this thread is open, so LCD can read and answer this. Hopefully he will fix it...

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests

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

phpBB SEO