Jump to content
  • entries
    4,255
  • comments
    2,528
  • views
    1,750,976

Giuseppe's future

Sign in to follow this  
atari2600land

345 views

Well, I worked on Super Giuseppe Bros. for the Odyssey2 again this weekend. I added a block for him to stand on. But I don't know if I can continue doing this for a long time like I did GoSub. The problem lies in the code getting the objects to display. Right now, the code for, say, getting the hole is 4 lines long. Basically what I'm telling the program to do is if it passes the first part, go to the second part. If it passes the second part, go to the third, etc. If I kept on doing this for a level, suppose I have, say 10 items in a level. That would mean the code for getting stuff would be 40 lines long, just for level 1. I wonder if there is an easier solution for this problem I'm having. Something like what I did in GoSub, where basically what I did was (in bB talk) an "on level level1data level2data" type of thing. Plus, can I make a game like Super Mario Bros. using just 2k? I'd like to have just one cart for both PAL and NTSC, and I'm thinking if I can make the game 2k I can do that. I don't know much about the Videopac (the PAL equivalent to Odyssey2), so I'm guessing 4k would need a different rom for that. The latest rom and code can be downloaded here: http://www.atari2600land.com/giuseppe/ Coding for the Odyssey2 is hard because if you use jnz or jz, you have to have the place it's jumping to in the same page (256 byte chunks.), but using jmp, you can have the place it jumps to be anywhere in the code. The code now is about 900 bytes, I estimate half of which is jmp codes redirecting the jz and jnz directions so I can go to other parts of the code. Like for example,

blah
anl a,#blah_var
mov a,@r0
jnz blah2
jmp blah4

blah2
jmp blah3

;page break

blah4
morestuff
jmp blah

blah3
restofcode
jmp blah

Of course, this is all just fake code to show my very convoluted coding style. I learn by examples. Fatso! was made by tweaking example code to make the game do what I wanted it to do. I used stuff I learned by tweaking the example code in Fatso! to make GoSub and Super Giuseppe Bros. So it's kind of hard for me to learn assembly when I have no other programming experience save for bB and QBasic (back when I was a kid.) But I'm trying to learn, which can be very frustrating at times.

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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