View Single Post
Old 01 May 2024, 17:25   #1551
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,325
I have a question: is there an equivalent of __LINE__ for current asm line number?

I'd like to set a register like

Code:
    move.l  #__LINE__,d0
in case of an error for instance

BTW I had a lot of issues with PC-relative LEA which weren't in the same unit. I got a warning when linking (using long... for ...) but the address was still PC relative and it read at the wrong location.

Great assembler no matter what. Using it for 15+ projects now.
jotd is offline  
 
Page generated in 0.04369 seconds with 11 queries