Hi.
On the .asm file, click properties.
Now in Configuration Properties/Custom Build Step/General set the following...
Command line...
..\Tools\bin\dasm.exe "$(InputName)".asm -DCOLOUR=1 -DTIA_BASE_ADDRESS=$40 -l"$(InputName)".txt -f3 -v5 -o$(OutDir)\$(ProjectName)$(ConfigurationName).bin
You would, of course, change the location of DASM and the command line switches as appropriate. This calls DASM to assemble the file and create a specially named .bin fine in the appropriate directory. I have several configurations setup (NTSC/PAL) so that by selecting the configuration, the compile creates the correct file in the correct subdiretctory for that configuration.
Next, in outputs...
$(OutDir)\$(InputName)$(ConfigurationName).bin
Save that. That will configure actually compiling the file for you.
Now click properties on the project itself.
Under Configuration Properties/General,
Output Directory set to $(ConfigurationName) -- this allows you to select multiple configurations as explained above. Same setting for Intermediate directory.
Under Configuration Properties/Debugging...
command set to ..\tools\bin\z26.exe (or wherever your z26 or emulator resides).
command arguments set to the arguments for your emulator. I use
-v17 -n -g14 -r60 $(ProjectName)$(ConfigurationName).bin
Note how I am using the macros available to auto-configure the binary that is run, based on the configuration.
Working Directory... set to ./$(OutDir)
Attach... no
Debugger Type... Auto
Environment...
Merge Environment... Yes
SQL Debugging... No
Now set the post-build events (I use this to auto-download to the '2600 through my Krokodile Cart command line interface).
Configuration Properties/Build Events/Post-Build Event
Command Line... "..\tools\bin\Krokodile Commander.exe" $(OutDir)\$(ProjectName)$(ConfigurationName).bin -id -bs=3E
And that's basically it.
I hit F5 to get a download to Krokodile Cart *and* an instance of Z26 to run. I hit F7 to just run on '2600. In both cases a compile is performed (if necessary) beforehand.
To switch to NTSC or PAL, I select the appropriate configuration in the configuration droplists. All you need to do is create named configurations and the setup of the compiles, using the macros, should put everything in subdirectories for each.
It's pretty neat once it is all working. Hope this helps.
Cheers
A
851911[/snapback]
Thank you!