Forum
@array broken? (*solved*) - 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)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: @array broken? (*solved*) (/showthread.php?tid=140)



@array broken? (*solved*) - britlion - 01-23-2010

I think something broke in the Array code. (Perhaps in asm function _ARRAY ?)

Code:
DIM udg(7) AS uByte => {24,88,126,26,120,72,206,2}
POKE UINTEGER 23675,@udg(0): REM udg(0) is the 1st array element
PRINT @udg(0)

STOP

This code crashes the spectrum - without any reference to @udg, it runs perfectly; so it seems to be the @udg calculation that is breaking.

ZXB 1.2.4.


Re: @array broken? - boriel - 02-20-2010

britlion Wrote:I think something broke in the Array code. (Perhaps in asm function _ARRAY ?)

Code:
DIM udg(7) AS uByte => {24,88,126,26,120,72,206,2}
POKE UINTEGER 23675,@udg(0): REM udg(0) is the 1st array element
PRINT @udg(0)

STOP

This code crashes the spectrum - without any reference to @udg, it runs perfectly; so it seems to be the @udg calculation that is breaking.

ZXB 1.2.4.

Confirmed. It *is* broken (it was ok until 1.2.3). Fixing it. I will upload soon 1.2.5c so you can make pertinent check before closing this bug and go to the next one (-O2 -O3 compilation broken).


Re: @array broken? - britlion - 02-20-2010

Thanks, Jose.

I know bug fixing can be a thankless task when the users whine for you to fix em with no pay.

We really appreciate it! Don't ever think otherwise.


Re: @array broken? - boriel - 02-20-2010

britlion Wrote:Thanks, Jose.

I know bug fixing can be a thankless task when the users whine for you to fix em with no pay.

We really appreciate it! Don't ever think otherwise.
I think I have fixed it. Please, download 1.2.5 Beta 2 from here: <!-- m --><a class="postlink" href="http://www.boriel.com/files/zxb/zxbasic-1.2.5beta2.msi">http://www.boriel.com/files/zxb/zxbasic-1.2.5beta2.msi</a><!-- m -->