Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables and functions not found when they really are there #79

Open
jgharston opened this issue Mar 10, 2021 · 4 comments
Open

Variables and functions not found when they really are there #79

jgharston opened this issue Mar 10, 2021 · 4 comments

Comments

@jgharston
Copy link
Contributor

Using test program at http://mdfs.net/temp/vdata.zip

Unzip, will give:
ViewData Acorn tokenised BASIC program
0 Teletext page file

From Brandy, CHAIN "ViewData". Teletext test page displayed ok. Press Escape. Gives error:
Cannot find function 'FNerr'
LIST
Program has vanished.
LOAD "ViewData"
LIST 1140,1160 - the function definition is there.
PRINT FNerr
Cannot find variable 'flg%' at line 1150
Ok. flg%=0:PRINT FNerr
Cannot find variable 'flg%' at line 1150
Yerwot???

If I edit line 1150, delete flg% then retype it, doing flg%=0:PRINT FNerr works. If I RUN the program it goes back to the initial problem, FNerr not found, program vanishes.

I'm trying to track down what is causing this and trying to create a minimum test case.

Matrix v1.22.10 (MinGW/x86-32/SDL) 14 Feb 2021

@soruk42
Copy link
Collaborator

soruk42 commented Mar 11, 2021

Trawling back to very old versions via git, the version prior to where I merged your Banana Brandy changes fell over with Unsupported BASIC V feature on the USR&FFDD statement on line 1510. After the merge, it fell over with a segfault on 64-bit, and losing its program on 32-bit on an error condition. But I am quite confused......

@soruk42
Copy link
Collaborator

soruk42 commented Mar 11, 2021

Incidentally, OSFILE via &FFDD is not supported, but is a no-op.

@jgharston
Copy link
Contributor Author

jgharston commented Mar 11, 2021 via email

@soruk42
Copy link
Collaborator

soruk42 commented Mar 11, 2021

Ah, in those old versions the addressing was relative to the workspace memory block so PAGE=0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants