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

cache build fails on "unexpanded" machine #3

Closed
sanchon opened this issue Jul 21, 2020 · 4 comments
Closed

cache build fails on "unexpanded" machine #3

sanchon opened this issue Jul 21, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@sanchon
Copy link

sanchon commented Jul 21, 2020

In my unexpanded zx spectrum next I get an error whenever I try to build the cache file.

Apparently I cannot use bank 48. This line:
6070 LET %k=13:BANK 48 ERASE 0:LET %j=0:;Current Bank, Current Base Address
fails with "Out of Memory"

I guess that the right thing to do would be to check the MAXBNK System Variable...

@sanchon sanchon changed the title cache build only available for expanded machines? cache build fails on "unexpanded" machine Jul 21, 2020
@kounch
Copy link
Owner

kounch commented Jul 21, 2020

You are right. A miscalculation on my part. Bank numbers start at 0, so it should, at least, be 47 instead of 48, but i will check also your suggestion

@kounch
Copy link
Owner

kounch commented Jul 21, 2020

Since everything is cleared after building, i have changed it to BANKS 13 and 14 (faster than using a variable), and this should work on everything, including a ZX-Uno with the Next Core.

Can you try the attached knloader.bas and report back here if it works ok for you?

knloader.bas.zip

@kounch kounch added the bug Something isn't working label Jul 21, 2020
@kounch kounch self-assigned this Jul 21, 2020
@kounch
Copy link
Owner

kounch commented Jul 22, 2020

Included in 1.0 RC3

@kounch kounch closed this as completed Jul 22, 2020
@sanchon
Copy link
Author

sanchon commented Jul 22, 2020

Now it works ok! Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants