Jump to content
IGNORED

Hello World! Program- Critiques Welcome


Recommended Posts

Hi!

 

I wrote this for several of reasons. First, to start and actually compete a program which I've never actually done- and the customary "Hello World" seemed appropriate. Second, I wanted to be have a program I could explain to people. So, I've avoided some of the more tedious aspects of an Atari programs if possible- such as fine-tuning the x position, or even having a y position at all. Third, to learn, as usual.

 

I'd appreciate any helpful comments if anyone is interested.

 

Thanks!

 

post-44582-0-20163300-1465683307_thumb.jpg

 

 

HelloWorld14.asm

HelloWorld.bin

post-44582-0-20163300-1465683307_thumb.jpg

Link to comment
Share on other sites

I've been doing this kind of thing on and off for a number of years. Because I keep stopping, I forget what I learned and have to start again.

 

Spent a couple of hours today installing Eclipse, the WUDSN (?) package and running through a couple of tutorials on AA. Done plenty of 6502 in the past but the 2600 hardware is a whole different ball game. Think I'll be spending my weekends actually enjoying some old-skool coding instead of the drudge that coding has become today.

  • Like 1
Link to comment
Share on other sites

You need to correct your scanline count to 262 lines to be stable. To check the scanline count with Stella hold down the ALT button and press L. You will see the display.

 

 

I usually center my screen with the help of Stella by looking at the screen in the Debug colors mode (hold ALT and press comma button). The black regions at the top and bottom of the screen are where the VBLANK register is being enabled. Looking at your screen I would add 4 more lines above the "HELLO", and 4 more lines below the "WORLD". Add these lines in the kernel part of the screen.

 

post-7074-0-77627800-1465699633_thumb.png

  • Like 1
Link to comment
Share on other sites

 

To check the scanline count with Stella hold down the ALT button and press L. You will see the display.

 

 

I usually center my screen with the help of Stella by looking at the screen in the Debug colors mode (hold ALT and press comma button).

 

That is cool.. Thanks!

Link to comment
Share on other sites

Good start! Omegamatrix covered the only issue I saw. While the line count can be an issue with some displays, it worked just fine on my C= 1084S:

post-3056-0-69301600-1465745665_thumb.jpg

 

Regarding the main loop comment - at this stage of the game I wouldn't consider it a waste of time and space. What it does is help reinforce that you, the programmer, are intimately involved with generating the display; which is unlike any other video game system.

 

  • Like 1
Link to comment
Share on other sites

Cool! Thanks. Yes- At this point it my belief that if I can just draw a game idea on the screen, the rest of the game logic should be relatively easy.

Nice work Jeff! :)

 

Very cool you are using a SuperCharger to run your code on a real Atari and excellent attitude about the screen, I totally agree.

  • Like 1
Link to comment
Share on other sites

Yeah I don't have a Harmony cart so the Supercharger does the trick. Its a little more complicated so I usually wait until I have something I really want to look at.

You can use the CuttleCart Playbin utility, which will play your binary directly without generating a wav file. Remember to select "Supercharger" as output, else it will generate audio for the CuttleCart which won't work.

 

See here:

http://atariage.com/forums/topic/247849-supercharger-and-wplaybin/?do=findComment&comment=3414680

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

Try it.. Its fun!

 

First I saw the games on the 2600 and thought... oh, pretty nice for that time. Some sprites, some colors, etc. But when I then discovered how less the hardware of the 2600 offers, I was totally shocked: How the hell has those guys done this with only 2 sprites and 3 dots... and a playfield with 20 blocks??? :-o

 

Even for a simple 6-digit-highscore you have to do things the hardware was never designed for. WOW!

After that my view on the games completely changed and the more I discovered about the 2600 the more I was impressed.

 

The 2600 has the craziest video hardware I have ever seen! So think it must be fun to do the challenge.

But I also think programming on such a hardware-based level is very time consuming.

 

I wish I would have more time to play with it. So for the moment I enjoy looking at others tech demos. :)

  • Like 1
Link to comment
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...