Jump to content
WizardBone

What's eating Bank4?

Recommended Posts

Happy New year!

I been doing alright with Batari Basic, I've reached a point where I can just write code and figure out how things work myself without depending on question and answers. I am proud of myself for that lollll
BUT I have 16k set up which has 4 banks. And I notice the 4th bank slowly gets eaten up by some kinda monster. Whats going on there exactly? Also wondering if you can direct the "monster" to other banks. What happens when bank 4 is used up and i wanna add more sprites, is that the end of the line? I'm coming close. A link to document explaining would be cool if you feel lazy : )

Edited by WizardBone

Share this post


Link to post
Share on other sites

randomterrain.com/atari-2600-memories-batari-basic-commands.html#bankswitching

You do not need to specify where sprite graphics go, as they all will be automatically placed in the last bank no matter where you define them (you can just leave all of your animation frames in the same bank that contains your main loop). Also, the kernel will always be placed in the last bank. Typically, bB modules and functions will as well.

Share this post


Link to post
Share on other sites

Thanks for the reply man! Yeah I get that, I've been on your site a million times haah. I kinda regret how I worded my question now. Its not so much whats going in there, I should have asked
Once bank 4 or even if Bank 8 is filled does that mean you cannot add anymore sprites?

Share this post


Link to post
Share on other sites

As far as I know, once your last bank is full, the only thing you can do is find ways to get rid of things like sprite frames that you don't absolutely need.

Share this post


Link to post
Share on other sites

If you ever absolutely need more graphics you can use RevEngs multi kernel framework:

http://atariage.com/forums/topic/221100-bb-256k-128k-64k-32k-multikernel-frameworks/

 

The restriction here is that each 4k is a complete game onto itself - meaning code and graphics share each 4k. Using the normal kernel there is more room for code in every bank but the last.

 

Of course, sprites from one bank aren't valid in another with the multi kernel framework. So, you either have to duplicate sprites or segregate each 4k into game modes that will never have to use sprites outside the bank. Say, have the first bank be the overworld with forest animals while the second bank is the dungeon with ghosts.

Share this post


Link to post
Share on other sites

I had this problem with sword of iffrit and found that removing all code from bank 8 except temp1 = temp1 opened up a few hundred more bytes. Before the savings I had my music code in bank 8.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...