Jump to content
IGNORED

Programming in a subdirectory


SeaGtGruff

Recommended Posts

I don't know if anyone else has mentioned this already. If you create all of your programs in the main Batari BASIC directory, it quickly fills up, and becomes very cluttered. You can keep things better organized by creating a subdirectory for your programs, so that just the main Batari BASIC files are in the main directory.

 

For example, my directories look like this:

 

C:\Atari

 

then

 

C:\Atari\2600

C:\Atari\5200

C:\Atari\7800

C:\Atari\800

 

etc. And inside each of those I have more subdirectories, like this:

 

C:\Atari\2600\docs

C:\Atari\2600\emus

C:\Atari\2600\roms

 

etc. So naturally I added another directory for Batari BASIC:

 

C:\Atari\2600\Batari BASIC

 

And then I added a directory inside of it for my programs:

 

C:\Atari\2600\Batari BASIC\Programs

 

I should mention that I'm using the 2600ide program, which is inside the main Batari BASIC directory. Anyway, when I load a program into 2600ide and compile it, I get an error because it can't find the programs.

 

To make it work, all you need to do is edit the 2600baside.bat file, and add a "cd .." command, like this:

 

@echo off
cd ..
2600bas.exe<%1>%1.obj
copy /y /a 2600basic.asm +%1.obj +2600basicfooter.asm %1.asm>nul
dasm %1.asm -f3 -o%1.bin

 

Note that you must do this with the 2600baside.bat file that's in the subdirectory where your games are. Once you do this, the compiles will execute correctly.

 

Michael Rideout

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