How to define local labels in SNASM68k (genesis)?

Discussion of development of software for any "obsolete" computer or video game system. See the WSdev wiki and ObscureDev wiki for more information on certain platforms.
Post Reply
ReverendSA
Posts: 36
Joined: Wed Mar 23, 2016 12:27 pm

How to define local labels in SNASM68k (genesis)?

Post by ReverendSA »

I am trying to use labels in a macro, but everytime I call the macro twice, I get a "label already defined" error. My only guess is that local labels may solve the problem. First instinct was to preface with a period (i.e .Loop instead of Loop), but the same error occurs. Maybe it's something else but I can't find out.
User avatar
TmEE
Posts: 960
Joined: Wed Feb 13, 2008 9:10 am
Location: Norway (50 and 60Hz compatible :P)
Contact:

Re: How to define local labels in SNASM68k (genesis)?

Post by TmEE »

Manual suggests @ or . in front of the label.
You can find the manual here : https://segaretro.org/File:SNASM68K_680 ... Manual.pdf
ReverendSA
Posts: 36
Joined: Wed Mar 23, 2016 12:27 pm

Re: How to define local labels in SNASM68k (genesis)?

Post by ReverendSA »

TmEE wrote: Sun Apr 26, 2020 1:28 pm Manual suggests @ or . in front of the label.
You can find the manual here : https://segaretro.org/File:SNASM68K_680 ... Manual.pdf
wow you're a life saver. I will hold this document closely to my chest and never let it go...........

correct syntax appears to be:

Code: Select all

Loop\@:
Post Reply