11-21-2019, 04:28 PM
(11-21-2019, 01:03 PM)maeloterkim Wrote:(11-10-2019, 10:02 PM)boriel Wrote: This has been implemented in ZX Basic 1.9+
Hi![]()
What is the sintaxis for DIM at?
Can you put some examples with initialized array and not initialized array?
thanks
DIM AT does not allow initialized values. The content will be whatever there exists already at the given location.
For arrays the syntax is
DIM varname(dim1, dim2, dim3...) AS <type> AT <address>. For example:
DIM a(6144) As UByte AT 16384
This is undocumented (yet) for arrays, but will be updated here: https://zxbasic.readthedocs.io/en/latest/dim/
Hope this helps