NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: dstudentx on March 08, 2010, 04:10:38 AM

Title: listing code
Post by: dstudentx on March 08, 2010, 04:10:38 AM
How can i view the listing code of a asm file?
Title: Re: listing code
Post by: Frank Kotler on March 08, 2010, 04:40:06 AM
First, ask Nasm to create one with the "-l" switch and a filename:

nasm -f obj myfile.asm -l myfile.lst

Then you can view it with... whatever editor you made "myfile.asm" with, I guess. If you'd like to *not* list part of the file, you can use "[list -]" to disable listing, and "[list +]" to turn it back on. If you don't want to see Dr. Carter's macros in your list file, for example...

[/list][/list]
Code: [Select]
[list -]
%include "asm_io.inc"
[list +]

I guess that's about all there is to it... holler if you have trouble.

Best,
Frank