The easiest way is to simply drag and drop your text file onto asm6.exe. If your code contains syntax errors, you'll hardly notice anything and it won't produce a file. If your code is error-free, then it will produce a file (theNameOfYourTextfile.bin) in the same folder. So this method is good when you want to do something quick. But it's probably not the best method if you don't know your way around the syntax just yet.
But the proper way (most of the time) is to either:
A)
-open command prompt in your project folder
-type: asm6 yourMainCodeTextFile.asm myGame.nes listing.txt
or
B)
-make a new text file
-type this:
Code: Select all
asm6 yourMainCodeTextFile.asm myGame.nes listing.txt
pause
-and save as "assemble.bat" or something like that.
-double click assemble.bat
the pause is important to be able to have a chance to get a look at the program readout.
obviously, replace my mockup file names with something that makes sense to your project.
as a suggestion, keep a copy of asm6 in each project folder. It simplifies things like not needing to specify full paths in the command line or batch (.bat) file.
For reference, here's what the readme file says:
Code: Select all
Usage:
asm6 [-options] sourcefile [outputfile] [listfile]
Options:
-? Show some help
-l Create listing
-L Create verbose listing (expand REPT, MACRO)
-d<name>: Define a symbol and make it equal to 1
-q Quiet mode (suppress all output unless there's an error)
Default output is <sourcefile>.bin
Default listing is <sourcefile>.lst
It says other things too that are important to read.