[Solved] Does NASM or YASM support defining line numbers?
[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?
Last edited by pvc on Mon Dec 21, 2020 4:00 pm, edited 1 time in total.
Re: Does NASM or YASM support defining line numbers?
Check out the %line directive in your copy of nasmdoc.txt.
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.
That's exactly what I was looking for. Big thanks.