[stella] DASM question
B. Watson
atari at hardcoders.org
Fri Sep 15 11:42:15 CDT 2006
On Fri, 15 Sep 2006, Manuel Rotschkar wrote:
> Anyone knowing if it is possible to specify the out filename or override
> the -o parameter from the commandline - within the source code?
Pretty sure you can't...
I'd go so far as to say you shouldn't be able to override -o, even. Maybe
someone could add a directive that lets you set the output filename
in the source code, in the absence of -o, but if the -o is present,
it should take precedence.
Otherwise, if I want to assemble your code, but don't like your choice of
filename, I have to either edit your code, or assemble it, then rename
it. If I were using DOS, and your source specified a long filename that
doesn't work under DOS, I'd be really annoyed... if you use Windows,
and assemble to C:\EMULATORS\Z26\output.bin, I'd be forced to edit your
code (that's not a valid path in Linux or OSX, and it doesn't exist on
most peoples' Windows machines either).
On the other hand... being able to give multiple output filenames in
the source might be a neat feature (set filename, a section of code that
gets assembled to that file, then set another filename, then code for the
second file, repeat as needed). Would let you assemble several binaries
from one source file. Not sure if this is a useful feature in real life,
though. Compilers and assemblers have been doing without this feature
for 40-50 years now, and nobody complains... you can always split up
your source file, or use conditional assembly (ifconst PAL...) with a
Makefile or batch file to call dasm multiple times.
That's my $0.02 anyway...
--
B.
More information about the Stella
mailing list