Jump to content
  • entries
    4,932
  • comments
    2,716
  • views
    1,807,384

gosub instead of goto


atari2600land

944 views

I spent a few hours last night trying to squish a few more bugs in Alien Greed 5. Then I went to sleep at 6pm. I was awakened by a dumb stupid cat crawling on my bed meowing at me at 4 am. Like always. Sigh. Anyway, when I got up, I decided to look at the code. I think it might have become clear what might have been causing the problem: I was using goto instead of gosub. But I still don't know why the problem didn't occur every time if that happens to be the fix. Sometimes when the game ended, the game reset and cleared the score you just got. And by "reset" I mean goes back to the beginning of the whole program, like you just put the cart in and turned it on for the first time. Anyway, I talked with Tim, the guy who published Alien Greed 4 (as well as the now-out Chief Chef Odyssey 2 game -shameless plug-) and I suggested a Q1 2016 release date for AG5. I sent him the binary file to test. So for the few if any people who want a fifth installment of the series, there's hope.
This time, our hero lands in the classic Atari 2600 game Kaboom! Instead of bombs, though, the Mad Bomber is throwing cartridges for the alien to catch. And in the boss stages, one is trying to catch carts and dodging bombs, and the other is collecting carts while dodging bombs. It's random which boss stage appears. I think the game will be just 4k this time.

  • Like 1

2 Comments


Recommended Comments

I've had my share of weird insta reset issues. It usually happens when my games come close to filling up a whole bank of ROM. Also, conflicts with variables shared by mini kernels.

 

I don't have a good solution but I definitely feel ya :)

Link to comment

I'm close to filling up the 4k. What's weird is that a few times, I have had -100 or so bytes left and the game wouldn't compile, and so I take out one tiny thing and suddenly I have 43 bytes left.

Link to comment
Guest
Add a comment...

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