za909 wrote:I would create a listing, but if I launch asm6.exe from the command prompt it can't open any other included assembly sources
If you ask it to create a listing, assembling the main source file will generate a listing containing everything, even the included files.
however when I simply drag my main source on to its icon it assembles everything properly (well other than this problem).
When you drag a file over an executable in windows, it calls that program passing the file you dragged as the first parameter.
This is actually a very bad way to assemble your programs. First because you can't see the assembler's output (because the command window closes too quickly), and that output is essential for debugging assembly errors. Second, because you can't use other features of the assembler, such as the generation of listing files.
To create the listing file, you'll have to call ASM6 with -l as the first parameter, and the main source file as the second. If you have ASM6 in the same folder as the main source file, this is as simple as creating a text file named assemble.bat with the following text in it: asm6 -l main.asm game.nes
Optionally, you can put a "pause" command (without quotes) in the next line, which will prevent the window from closing before you press a key, giving you time to read the assembler's output. Anyway, just double click the batch file to assemble your project.
If the assembler is in a separate folder, you can still create the batch file in the game's folder, but you'll have to write the full path to the assembler. Something like: c:/programs/asm6/asm6 -l main.asm game.nes