EdouardBERGE / rasm

RASM powerful Z80 assembler
129 stars 16 forks source link

Variable clash when including Arkos Tracker 2's PlayerAKM.asm #31

Closed anrikun closed 10 months ago

anrikun commented 10 months ago

Hi, I've tried to include Arkos Tracker 2's PlayerAKM.asm into my project. When compiling, I get error : cannot create variable [COUNTER] as there is already a label with the same name My project has indeed a counterlabel and Arkos declares a countervariable. Obviously if I rename my label, the problem is solved. But I was wondering if there was a way to "encapsulate" the included file so that this kind of clash could be avoided. Or to automatically add a suffix to a variable name when a label with the same name already exists. I've searched through the documentation without success. Thank you in advance for your help.

EdouardBERGE commented 10 months ago

you can use MODULE directive to open a module (do not forgot to close it) and encapsulate the player you will have to change your CALLS to the player http://rasm.wikidot.com/syntaxe:labels