12-23-2016, 12:58 AM
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> ?
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> ?