Jump to content

Recommended Posts

Excuse me if I started a previous thread in the Atari 2600 BASIC forum about this game, but I couldn't find it, and please direct me to it. Anyway, I had it working in 8k, figured out bankswitching, then added some more code and got this:

post-9475-1155098054_thumb.png

What does this mean, and how do I fix it? Here's the code in case anyone wants to help.

supermariasistersbs.bas

Link to comment
https://forums.atariage.com/topic/91836-super-maria-sisters/
Share on other sites

Well, that's what I thought at first, but most of the new programming I put in bank 2, and I even moved some of the other programming from bank 1 into bank 2 and it still got that type of message.

Link to comment
https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116721
Share on other sites

Well, that's what I thought at first, but most of the new programming I put in bank 2, and I even moved some of the other programming from bank 1 into bank 2 and it still got that type of message.

 

Hmm.....it could be the way you typed bank two as "bank2" because the format for setting up a new bank is "bank x" where x is the bank # so, in theory, there could be problems because of the lack of that space between "bank" and "2". Another thing you could try is clean up your code a bit and look through it and see if it flows logically. If all else fails you could just send batari a personal message (because he wrote Bb and should know what he's talking about) and see what he thinks.

 

Good Luck!, :)

 

Dragnerok X

Link to comment
https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116837
Share on other sites

Excuse me if I started a previous thread in the Atari 2600 BASIC forum about this game, but I couldn't find it, and please direct me to it. Anyway, I had it working in 8k, figured out bankswitching, then added some more code and got this:

post-9475-1155098054_thumb.png

What does this mean, and how do I fix it? Here's the code in case anyone wants to help.

There are two problems where you're trying to start the second bank. First, you need to indent the bank statement at least one space from the left margin, so bB and DASM don't interpret it as a line label. And second, you need a space between the bank statement and the bank number. The code in question should look like this:

 

840 if joy0fire then goto 1100 bank2
850 goto 800

 bank 2
1100 player0:
 %0110110
 %0010100
 %1011101
 %1011101
 %1111111
 %0011100
 %0011100
 %0111100
 %0011100
end

Note that "bank2" in line 840 is correct-- in that situation, you should *not* put a space between the "bank" keyword and the bank number. But in the line between 850 and 1100, where you are actually starting the code for the next bank, there *must* be a space between "bank" and "2," and the "bank 2" statement must be indented at least one space from the left margin.

 

Make that change, and your code will compile correctly.

 

Michael Rideout

Link to comment
https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116871
Share on other sites

By the way, the reason for the error-- or, rather, the meaning of the error-- is that the "bank2" statement that's between line 850 and line 1100 is being interpreted as a line label, therefore bB and DASM aren't placing the rest of your code in bank 2 as you'd intended. Instead, the rest of your code compiles in bank 1. Then, when bB compiles its own routines, it puts them at the start of bank 2, but there appears to be an overlap in the addresses, because your code already went past the RORG address for bank 2, and that overlap in the RORG addresses is what produces the error message.

 

Michael Rideout

Link to comment
https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116912
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.
Note: Your post will require moderator approval before it will be visible.

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...