OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:38 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved] Does NASM or YASM support defining line numbers?
PostPosted: Mon Dec 21, 2020 1:06 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
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.

Top
 Profile  
 
 Post subject: Re: Does NASM or YASM support defining line numbers?
PostPosted: Mon Dec 21, 2020 3:18 pm 
Offline
Member
Member

Joined: Tue Mar 04, 2014 5:27 am
Posts: 1108
Check out the %line directive in your copy of nasmdoc.txt.


Top
 Profile  
 
 Post subject: Re: Does NASM or YASM support defining line numbers?
PostPosted: Mon Dec 21, 2020 3:59 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
My copies of NASM and YASM both came with no documentation but… whatever.
That's exactly what I was looking for. Big thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: zaval and 56 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group