Author Topic: No lst file  (Read 8532 times)

Offline saddlefoot

  • Jr. Member
  • *
  • Posts: 3
No lst file
« on: October 29, 2010, 07:21:00 PM »
Can anyone think of reasons I am not getting a list file?

c:\someDir\code> nasm xxx.asm -fobj -o xxx.com -l err.lst

Using windows xp
nasm 2.08.01
I pathed out the "program file\nasm" directory in the environment
After execution the errors still scroll in the window and I get a new screen prompt
I ran a search to see if the lst file was anywhere on my c: drive...its not

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: No lst file
« Reply #1 on: October 29, 2010, 08:29:30 PM »
If assembly is interrupted by error(s), no list file is produced. If it were, it probably wouldn't contain the error messages anyway. You probably want the "-Z" option:

http://www.nasm.us/doc/nasmdoc2.html#section-2.1.14

Another option might be "nasm -f obj xxx.asm -s >xxx.err", the "-s" sending errors to stdout.

The "-o xxx.com" will cause the output file to be named "xxx.com", but the output from "-f obj" will not be a ".com" file! Think about what you actually want to do there... The "-f bin" option will produce a ".com" file (and might get rid of some errors, too - the source code needs to be different for "-f obj"...).

Best,
Frank