Author Topic: listing code  (Read 8982 times)

Offline dstudentx

  • Jr. Member
  • *
  • Posts: 18
listing code
« on: March 08, 2010, 04:10:38 AM »
How can i view the listing code of a asm file?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: listing code
« Reply #1 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