(02-03-2023, 03:38 PM)zarsoft Wrote: --debug-array will not change anything.
I changed this line.
"18 DIM p(200) AS LONG"
But still resets the emulator.
The problem disappears when removing some unused lines - so, I think it's a compiler bug.
I have tested your first example and it runs ok in my emulator (Fuse). See the screenshot attached:
What compiler version do you have?
Try this one:
http://www.boriel.com/files/zxb/zxbasic-...a10.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...beta10.zip
http://www.boriel.com/files/zxb/zxbasic-...-win32.zip
http://www.boriel.com/files/zxb/zxbasic-...x64.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...cos.tar.gz