Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
@array broken? (*solved*)
#1
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.
Reply
#2
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).
Reply
#3
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.
Reply
#4
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 -->
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)