Jump to content

batari Basic - READ ME FIRST


33 replies to this topic

#1  

    HMBL 2600 coder

  • 3,970 posts
  • Joined: 10-July 02
  • Location:Boston Burbs, MA

Posted Wed Jul 20, 2005 5:25 PM

Batari Basic is Fred "Batari" Quimby's "BASIC" compiler for creating Atari 2600 games.

from the original README.txt:

Quote

Atari 2600 BASIC is intended as a beginner's platform so that one may become accustomed to the intricacies of the system. Although Atari 2600 BASIC is a viable development platform on its own, its real purpose is as a stepping stone toward 2600 programming using assembly language.

Atari 2600 BASIC "lowers the bar" so that others with limited programming experience can write games that can run on a real Atari 2600 or an emulator.
This forum is for latest news and releases, programming talk, showing off of creations, and general conversation about this cool new 2600 programming tool. Sharing tips and source code is encouraged.

Here are the most important links:
Other links:

  • Visual bB is an all-in-one IDE (Integrated Development Environment) with built in code and graphic editors.
  • AtariAge BatariBasic CodeCleaner helps ensure indentation is preserved when posting code snippets here
  • do re bB explains "the BASICs of bAtari Music"
  • Tone Toy 2008 lets you experiment with the weird noises the Atari 2600 can generate
  • kernel-don't-panic is a chart for the complexities of bB kernel options

I will work to keep this list relevant and up to date. Please post suggestions for links in this thread.

Edited by kisrael, Mon Jan 5, 2009 4:18 PM.


#2  

    Quadrunner

  • 5,831 posts
  • Joined: 24-November 04
  • Boom bam.
  • Location:Seattle, WA

Posted Thu Jul 21, 2005 9:31 AM

kisrael, on Wed Jul 20, 2005 4:25 PM, said:

...is encouraged. Whining...or begging for custom kernals is not.
I dunno. I mean, whining and begging are generally not pleasant to listen to or read, but a discussion of what kinds of kernels people want would probably be a good thing; as it would focus the development of future kernels in a productive direction.

Writing good kernels is hard, time-consuming work, with little payback for whoever writes them; it would be a waste of that work to write kernels that aren't wanted and won't get used.

So I think there should be a thread devoted to discussion of new kernels. Preferably without the whining and begging. :D

(Plus, if new kernel discussion has its own thread it will help keep the whining/begging out of other threads.)

#3  

    HMBL 2600 coder

  • 3,970 posts
  • Joined: 10-July 02
  • Location:Boston Burbs, MA

Posted Thu Jul 21, 2005 10:31 AM

good point, post amended.

#4  

    The hottest thing from the North to come out of the South

  • 12,219 posts
  • Joined: 18-April 02
  • Lover of All American Burgers
  • Location:Bellmore, LI, NY

Posted Fri Aug 19, 2005 9:23 AM

Here's what is probably a dopey question about 2600 basic. I used to mess around in Basic on the Vic 20 when I was a kid. I made a couple of simple games. Is the 2600 Basic similar to that Basic in the Vic? I'm assuming there are some differences but I'm wondering if any of the old stuff I did is useful for this.

Sorry if this is a dumb question but programming still seems like magic to me for the most part.

#5  

    HMBL 2600 coder

  • 3,970 posts
  • Joined: 10-July 02
  • Location:Boston Burbs, MA

Posted Fri Aug 19, 2005 10:46 AM

joeybastard, on Fri Aug 19, 2005 11:23 AM, said:

Here's what is probably a dopey question about 2600 basic.  I used to mess around in Basic on the Vic 20 when I was a kid.  I made a couple of simple games.  Is the 2600 Basic similar  to that Basic in the Vic?  I'm assuming there are some differences but I'm wondering if any of the old stuff I did is useful for this.

Sorry if this is a dumb question but programming still seems like magic to me for the most part.
The short answer is no, not too useful, just the experience of breaking a problem (like a game) into a series of bitesize steps and a little bit of familiarity with the way the language looks. Like, you probably won't be able to recycle much old code.

The 2600 has some sever limitations...it doesn't have Print or anything like that, just some graphics stuff to play with. Vic20 was also limited, but in different ways.

#6  

    The hottest thing from the North to come out of the South

  • 12,219 posts
  • Joined: 18-April 02
  • Lover of All American Burgers
  • Location:Bellmore, LI, NY

Posted Fri Aug 19, 2005 10:51 AM

kisrael, on Fri Aug 19, 2005 12:46 PM, said:

The 2600 has some sever limitations...it doesn't have Print or anything like that, just some graphics stuff to play with. Vic20 was also limited, but in different ways.

View Post


That's what I thought the answer would be. Thanks. :)

#7  

    )66]U('=I;B$*

  • 6,193 posts
  • Joined: 20-September 04
  • begin 644 contest

Posted Fri Aug 19, 2005 7:42 PM

kisrael, on Fri Aug 19, 2005 11:46 AM, said:

joeybastard, on Fri Aug 19, 2005 11:23 AM, said:

Here's what is probably a dopey question about 2600 basic.  I used to mess around in Basic on the Vic 20 when I was a kid.  I made a couple of simple games.  Is the 2600 Basic similar  to that Basic in the Vic?  I'm assuming there are some differences but I'm wondering if any of the old stuff I did is useful for this.

Sorry if this is a dumb question but programming still seems like magic to me for the most part.
The short answer is no, not too useful, just the experience of breaking a problem (like a game) into a series of bitesize steps and a little bit of familiarity with the way the language looks. Like, you probably won't be able to recycle much old code.

The 2600 has some sever limitations...it doesn't have Print or anything like that, just some graphics stuff to play with. Vic20 was also limited, but in different ways.

View Post

While it's true that BASIC is generally not portable from one platform to another, I think that if you were able to program a VIC-20 at one time, after messing with bB for a while, it will soon start to feel comfortable like an old pair of shoes.

#8  

    Quadrunner

  • 6,366 posts
  • Joined: 01-June 05

Posted Sat Aug 20, 2005 11:54 AM

[quote name='joeybastard' date='Fri Aug 19, 2005 11:51 AM']
[quote name='kisrael' date='Fri Aug 19, 2005 12:46 PM']The 2600 has some sever limitations...it doesn't have Print or anything like that, just some graphics stuff to play with.
[/quote]

Uh, sure it does. bB may not support "Print", but the original 2600 BASIC did. To be sure, its usefulness was limitted by the fact that everything that was printed, plus the program, plus the variables and stack, had to all fit in 64 bytes, but there was a print command and it did work.

#9  

    HMBL 2600 coder

  • 3,970 posts
  • Joined: 10-July 02
  • Location:Boston Burbs, MA

Posted Sat Aug 20, 2005 7:08 PM

supercat, on Sat Aug 20, 2005 1:54 PM, said:

kisrael, on Fri Aug 19, 2005 12:46 PM, said:

The 2600 has some sever limitations...it doesn't have Print or anything like that, just some graphics stuff to play with.

Uh, sure it does. bB may not support "Print", but the original 2600 BASIC did. To be sure, its usefulness was limitted by the fact that everything that was printed, plus the program, plus the variables and stack, had to all fit in 64 bytes, but there was a print command and it did work.
Ok, the "it" there was supposed to be batariBASIC, not "the 2600"

Though a more correct but less helpful sentence would have been.

"The 2600 has some severe limitations...it [the 2600] doesn't even have character mapped screens (unlike every popular 8bit homecomputer of the late 70s / early 80s, including the VIC20) so something that seems simple, like a Print statement, doesn't exist in (the current version of) Batari BASIC. (And was just a big graphics hack in the programming cart.)"

#10  

    Space Invader

  • 34 posts
  • Joined: 26-June 05
  • Location:Gulf Coast MS

Posted Fri Apr 14, 2006 4:21 PM

Hello,
I've been going through the tutorials and great web resources on programming
in asm for the 2600. My question is.. is bB still considered as
"a stepping stone toward 2600 programming using assembly language." ?
Has it evolved so since it's creation that the general homebrew community now
accepts it complete? I see this section of the forums active a lot.
I'm trying to figure if it's worth continuing to go down the asm road or should I
invite my learning time in bB?

#11  

    Quadrunner

  • 6,366 posts
  • Joined: 01-June 05

Posted Fri Apr 14, 2006 5:28 PM

View Postgameprogram, on Fri Apr 14, 2006 5:21 PM, said:

I'm trying to figure if it's worth continuing to go down the asm road or should I invite my learning time in bB?

Learning BB would probably not be a bad idea. Trying to write a game in assembly language generally requires that you have an fair bit of code written before you can see anything working. Using bB from that perspective is much simpler. Further, bB does allow the integration of assembly-language routines within a bB program, so as you get proficient with assembly code you can have more and more of your game written in that, and less and less in bB.

#12  

    HMBL 2600 coder

  • 3,970 posts
  • Joined: 10-July 02
  • Location:Boston Burbs, MA

Posted Fri Apr 14, 2006 9:19 PM

bB might also be a good way of "how do I do *this*"....with my own ASM game I was always having to consult simple 6502 documentation when doing simple subtraction or numeric comparison, but bB sticks close rnough to the ASM that I could probably just write a tiny program and run it through bB to remind myself what the ASM looks like...

#13  

    Assistant head peon

  • 23,456 posts
  • Joined: 19-May 01
  • I be regular, bitches!
  • Location:The Ghost Box

Posted Wed Oct 11, 2006 4:44 PM

Are there any programming tutorials? I have an idea for a game, and would like to "rough one up" as it were, with bB

#14  

    )66]U('=I;B$*

  • 6,193 posts
  • Joined: 20-September 04
  • begin 644 contest

Posted Thu Oct 12, 2006 9:22 PM

View PostInky, on Wed Oct 11, 2006 5:44 PM, said:

Are there any programming tutorials? I have an idea for a game, and would like to "rough one up" as it were, with bB
Yes, SeaGtGruff wrote three of them:

Tutorial 1
Tutorial 2
Tutorial 3

#15  

    Assistant head peon

  • 23,456 posts
  • Joined: 19-May 01
  • I be regular, bitches!
  • Location:The Ghost Box

Posted Thu Oct 12, 2006 9:26 PM

I read those, and what I was wanting was more of a language tutorial.

#16  

    River Patroller

  • 4,411 posts
  • Joined: 07-August 05
  • Location:Georgia, USA

Posted Fri Oct 13, 2006 12:04 AM

View PostInky, on Thu Oct 12, 2006 11:26 PM, said:

I read those, and what I was wanting was more of a language tutorial.
See the following:

http://www.randomterrain.com/atari-2600-me...c-commands.html

It isn't a tutorial per se, but it's a solid reference for the commands and such.

MR

#17  

    Space Invader

  • 18 posts
  • Joined: 11-October 06

Posted Sun Oct 15, 2006 7:02 AM

hi!

thanks for the link i didnt know this article before :)

i have done a .pdf version of this article for printing it out easier.

Attached Files



#18  

    River Patroller

  • 4,151 posts
  • Joined: 11-June 01
  • Location:Wallingford, CT

Posted Sat Aug 11, 2007 9:26 PM

I'm not sure where I should post this but read the links:

http://www.bogost.co...er_system.shtml

http://www.bogost.co...ari_games.shtml

This guy was just on Steven Colbert.

Allan

#19  

    )66]U('=I;B$*

  • 6,193 posts
  • Joined: 20-September 04
  • begin 644 contest

Posted Sat Aug 11, 2007 9:51 PM

View PostAllan, on Sat Aug 11, 2007 10:26 PM, said:

I'm not sure where I should post this but read the links:

http://www.bogost.co...er_system.shtml

http://www.bogost.co...ari_games.shtml

This guy was just on Steven Colbert.

Allan
BTW, you can view the clip here.

#20  

    Chopper Commander

  • 136 posts
  • Joined: 13-December 05
  • Location:Atlanta

Posted Sun Aug 12, 2007 5:11 PM

View Postbatari, on Sat Aug 11, 2007 11:51 PM, said:

View PostAllan, on Sat Aug 11, 2007 10:26 PM, said:

I'm not sure where I should post this but read the links:

http://www.bogost.co...er_system.shtml

http://www.bogost.co...ari_games.shtml

This guy was just on Steven Colbert.

Allan
BTW, you can view the clip here.

Hey guys, thanks for the links. I really need to drop in here more.

I'm struggling to prepare for the semester, but i have at least a dozen student Batari games I am going to post, as well as a half dozen or so 6502 asm games from my grad class last term. The VCS book is just about finished and should be out next fall (yeah, it takes forever).

#21  

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Joined: 02-December 04
  • Location:New Jersey

Posted Wed Aug 29, 2007 12:12 PM

Heh.. (evil grin here) What I like about coding programs with Batari Basic is using Crimson Editor it looks like I'm doing real work. I can install everything
at work and code a game and it'll look like I am busy.

I wonder if there's anyway to browse the forums without all the graphics. This way I can download tutorials and code samples while looking busy too!

#22  

    Dragonstomper

  • 741 posts
  • Joined: 28-June 06
  • Location:Bend, Oregon U.S.A.

Posted Wed Aug 29, 2007 12:25 PM

View Postyuppicide, on Wed Aug 29, 2007 11:12 AM, said:

Heh.. (evil grin here) What I like about coding programs with Batari Basic is using Crimson Editor it looks like I'm doing real work. I can install everything
at work and code a game and it'll look like I am busy.

I wonder if there's anyway to browse the forums without all the graphics. This way I can download tutorials and code samples while looking busy too!

Yes, you can. Just click on "Lo-Fi Version" towards the bottom of this page.

#23  

    Chopper Commander

  • 136 posts
  • Joined: 13-December 05
  • Location:Atlanta

Posted Mon Sep 3, 2007 10:51 AM

Just a quick note that I've posted the games and updated my courses. Rather than duplicate the post here, I'll point to it over on the general 2600 programming forum

http://www.atariage....howtopic=112860

#24  

    Star Raider

  • 54 posts
  • Joined: 13-February 07
  • New and improved!
  • Location:Virginia

Posted Thu Apr 24, 2008 8:22 PM

Using Crimson Editor, whenever i try to compile Zombie Chase, it says"

> "C:\Program Files\Atari Programming Tools\Batari Basic\2600bas.bat" C:\Program Files\Atari Programming Tools\Batari Basic\samples\zombie_chase.bas
Files\Atari was unexpected at this time.

> Terminated with exit code 255.

When it should terminate with exit code 0. I've tried everything i can think of and cannot find a way to correct this. And I know i have to fix this, because it won't run any bB programs because it's obviously not able to correctly compile the .bas files because of some unknown error i have made in setting up Crimson Editor as directed in Session 3 of the tutorial on the Batari Basic site.

#25  

    River Patroller

  • 4,411 posts
  • Joined: 07-August 05
  • Location:Georgia, USA

Posted Thu Apr 24, 2008 9:26 PM

View Postjonfin826, on Thu Apr 24, 2008 10:22 PM, said:

Using Crimson Editor, whenever i try to compile Zombie Chase, it says"

> "C:\Program Files\Atari Programming Tools\Batari Basic\2600bas.bat" C:\Program Files\Atari Programming Tools\Batari Basic\samples\zombie_chase.bas
Files\Atari was unexpected at this time.

> Terminated with exit code 255.

When it should terminate with exit code 0. I've tried everything i can think of and cannot find a way to correct this. And I know i have to fix this, because it won't run any bB programs because it's obviously not able to correctly compile the .bas files because of some unknown error i have made in setting up Crimson Editor as directed in Session 3 of the tutorial on the Batari Basic site.
The problem is with your directory path, which contains spaces. Both the batari Basic compiler and the DASM assembler use parameters to tell them what to compile/assemble, so if you have spaces in the directory path, the spaces are taken as separating different parameters from each other-- e.g., "C:\Program" is taken as one parameter, "Files\Atari" is taken as another parameter, "Programming" is taken as another parameter, and so forth.

The good news is, you can keep your installation setup and directory path as is, as long as you put quotes around things.

In Crimson Editor, you'll need to put quotes around your Argument for the tool you've set up to compile with. For example, the Argument for my compile tool is "$(FilePath)" (in quotes, as shown). You might be using a different variable for your Argument, but whatever it is, the whole thing must be enclosed in quotes.

In the batari Basic compile batch (2600bas.bat), if you've added the SET command to set the bB variable to the directory where you've installed batari Basic, and if the path contains any spaces, (I think) you'll also need to put it in quotes, as follows:

SET bB="C:\Program Files\Atari Programming Tools\Batari Basic"
SET PATH=%PATH%;%bB%
Michael

Edited by SeaGtGruff, Thu Apr 24, 2008 9:28 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users