OSDev.org
https://forum.osdev.org/

[Solved] Does NASM or YASM support defining line numbers?
https://forum.osdev.org/viewtopic.php?f=13&t=38947
Page 1 of 1

Author:  pvc [ Mon Dec 21, 2020 1:06 pm ]
Post subject:  [Solved] Does NASM or YASM support defining line numbers?

I have some automatically generated assembly code in NASM/YASM flavor and I would like to add source line numbers to it. GNU assembler has .file and .loc directives for that purpose. Does NASM or YASM have some equivalent to that?

Author:  alexfru [ Mon Dec 21, 2020 3:18 pm ]
Post subject:  Re: Does NASM or YASM support defining line numbers?

Check out the %line directive in your copy of nasmdoc.txt.

Author:  pvc [ Mon Dec 21, 2020 3:59 pm ]
Post subject:  Re: Does NASM or YASM support defining line numbers?

My copies of NASM and YASM both came with no documentation but… whatever.
That's exactly what I was looking for. Big thanks.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/