Blitz (16/218)

From:David McMinn
Date:3 Aug 2001 at 19:45:09
Subject:Re: Drawing a sample

On 3 Aug 01, at 18:44, amorel broke out long enough to write:

> C=I wrote a small test program and disassembled it. The way the Blitz
> C=executables work, there does not need to be a limit to the size of arrays
> C=because it uses a longword for the index (shifted left to get the correct
> C=size for each item) and adds that to the address of the array (using an
> C=ADD instruction, not an addressing mode).
>
> So why is there a limit?

I guess because of the newtype arrays using the multiplication instructions
- that means with a newtype array you can only get 65535 items. I guess
they either just made everything the same, or it's a mistake that simple
arrays have this limit.

It might not actually be a limit. Remember, you'll only get this error when
the debugger is enabled. When disabled, it should just go on and do it, but
in this case it's not actually an error and so it will work :)

However, it might be good to get a hold of the source for this library and
fix it. I wonder if it came with the BSS source...

[) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie