+atari2600land Posted August 9, 2006 Share Posted August 9, 2006 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: What does this mean, and how do I fix it? Here's the code in case anyone wants to help. supermariasistersbs.bas Quote Link to comment https://forums.atariage.com/topic/91836-super-maria-sisters/ Share on other sites More sharing options...
Dragnerok X Posted August 9, 2006 Share Posted August 9, 2006 I could be wrong, but it looks like you are taking up too much space in bank 1 and should move some more of your code to bank 2. Quote Link to comment https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116656 Share on other sites More sharing options...
+atari2600land Posted August 9, 2006 Author Share Posted August 9, 2006 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. Quote Link to comment https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116721 Share on other sites More sharing options...
Dragnerok X Posted August 10, 2006 Share Posted August 10, 2006 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 Quote Link to comment https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116837 Share on other sites More sharing options...
SeaGtGruff Posted August 10, 2006 Share Posted August 10, 2006 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: 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 Quote Link to comment https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116871 Share on other sites More sharing options...
SeaGtGruff Posted August 10, 2006 Share Posted August 10, 2006 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 Quote Link to comment https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116912 Share on other sites More sharing options...
+atari2600land Posted August 10, 2006 Author Share Posted August 10, 2006 Problem fixed. Thanks for your help. Quote Link to comment https://forums.atariage.com/topic/91836-super-maria-sisters/#findComment-1116936 Share on other sites More sharing options...
Recommended Posts
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.