Search found 45 matches

by programandala.net
Sat Apr 24, 2021 12:06 pm
Forum: Basic
Topic: Local string variables cannot have the name of multidimensional string arrays
Replies: 1
Views: 4037

Local string variables cannot have the name of multidimensional string arrays

I've found that a local string variable cannot have the name of a multidimensional string array. In the following example code, the first execution of `local` works, but the second fails with "Subscript wrong": 10 DIM n$(10) 20 PRINT "DIM n$(10)" 30 LET n$(1)="G" 40 PROC zx() 50 PRINT "global n$(1)=...
by programandala.net
Wed Apr 14, 2021 2:55 pm
Forum: Basic
Topic: `.$ .txt2bas` fails
Replies: 2
Views: 1063

Re: `.$ .txt2bas` fails

The help text of `.$` is clear, but somehow I missed that dot when I read it! Thank you.
by programandala.net
Sat Apr 10, 2021 11:28 am
Forum: Basic
Topic: `.$ .txt2bas` fails
Replies: 2
Views: 1063

`.$ .txt2bas` fails

The following code fails at line 20 with "No such file or dir":

Code: Select all

10 let f$="file.txt"
20 .$ .txt2bas f$
It fails also in the command line.
Of course <file.txt> exists, and `.txt2bas file.txt` works fine.

`.txt2bas` doesn't work with `.$`? Is it known?
by programandala.net
Sat Apr 10, 2021 11:14 am
Forum: Basic
Topic: Some procedure names are not accepted (bug?)
Replies: 4
Views: 1124

Re: Some procedure names are not accepted (bug?)

Thank you for the detailed explanation.
by programandala.net
Tue Apr 06, 2021 8:23 pm
Forum: Basic
Topic: Some procedure names are not accepted (bug?)
Replies: 4
Views: 1124

Re: Some procedure names are not accepted (bug?)

Actually it sounds like procedure names are limited to 9 characters and rather than ignoring any excess it is parsing what follows. You're right, it seems to happen with all keywords, provided they start at character 10. The manual reads (p. 56) that procedure names follow the rules of numeric vari...
by programandala.net
Tue Apr 06, 2021 12:15 pm
Forum: Basic
Topic: Some procedure names are not accepted (bug?)
Replies: 4
Views: 1124

Some procedure names are not accepted (bug?)

I have discovered some procedure names are not allowed, without reason. First I thought the problem was caused when the procedure name contained certain keywords of certain lenght at the start and the end, e.g. "ERASEthebAND" or "PLAYthedoOR", but after many tries I conclude the error condition is s...
by programandala.net
Tue Mar 30, 2021 12:13 pm
Forum: Basic
Topic: Why the behaviour of `list 9999` differs from ZX Spectrum 48/128?
Replies: 1
Views: 1274

Why the behaviour of `list 9999` differs from ZX Spectrum 48/128?

I have realised NextBASIC's `list` with a line number higher than the actual last line of the program is ignored, while the same command in 48 or 128 moved to the end of the program. Is that difference intended? The manual and the "NextZXOS Editor features" document don't mention it. The shortcut EX...
by programandala.net
Mon Mar 29, 2021 9:57 pm
Forum: Basic
Topic: Problems with banked BASIC procedures
Replies: 5
Views: 1328

Re: Problems with banked BASIC procedures

Thank you. I had the older 2020-03-30 version of the document.
by programandala.net
Mon Mar 29, 2021 8:45 am
Forum: Basic
Topic: Problems with banked BASIC procedures
Replies: 5
Views: 1328

Re: Problems with banked BASIC procedures

Still happening in the dev version of nextzxos so I will let Garry know. Thank you. Beside the main problem that seems to corrupt the interpreter, I wonder why long lines are not allowed in banked procedures. In fact `bank n line first,last` rejects them with an error. Maybe it's not a bug but an a...
by programandala.net
Sat Mar 27, 2021 10:26 am
Forum: Basic
Topic: Problems with banked BASIC procedures
Replies: 5
Views: 1328

Re: Problems with banked BASIC procedures

After doing some tests, It's clear the problem has nothing to do with my code or with using zmakebas to build the banked programs. It seems there's a bug in the system. I've written a test program that demonstrates the problem: #program banktest 10 REM BankTest 20 REM programandala.net 30 REM 2021-0...