-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option -u warns about unused labels from included ASM file #13
Comments
It sounds like you want "OPT u" added so you can turn the warnings on and off where you want them. |
Not sure if "OPT u" could make the process easier. |
I was thinking you would put OPT u- at the top of the include file and OPT u+ at the bottom. This is how I use OPT l-/+ to keep those same files out of the .lst file. |
I see. It could work. |
I use the handy option
-u
so that I don't keep useless labels in my codeBut it doesn't seem to be working as expected when including labels from external ASM file.
Let's have a shared library for a work with keyboard
keys.asm:
and an application using only
KEY_SPACE
,KEY_F
andKEY_H
from itgtia_gr0.asm:
There is also another application using different keys:
KEY_M
,KEY_U
,KEY_D
.Now if I assemble
gtia_gr0.asm
, I'm getting warnings ❌Or is there a way how to "Import only some labels and don't notice others" so that I won't get those warnings?
Or another solution? I don't want to separate keys into extra libraries. I just want to share some keys from one library.
Used SW:
mads 2.1.5, Ubuntu 22.10
The text was updated successfully, but these errors were encountered: