How to define local labels in SNASM68k (genesis)?
-
- Posts: 36
- Joined: Wed Mar 23, 2016 12:27 pm
How to define local labels in SNASM68k (genesis)?
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.
- 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)?
Manual suggests @ or . in front of the label.
You can find the manual here : https://segaretro.org/File:SNASM68K_680 ... Manual.pdf
You can find the manual here : https://segaretro.org/File:SNASM68K_680 ... Manual.pdf
-
- Posts: 36
- Joined: Wed Mar 23, 2016 12:27 pm
Re: How to define local labels in SNASM68k (genesis)?
wow you're a life saver. I will hold this document closely to my chest and never let it go...........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
correct syntax appears to be:
Code: Select all
Loop\@: