Skip to content
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

Add the ability to access symbols that are part of subsymbols #19

Closed
ghost opened this issue Dec 27, 2019 · 6 comments
Closed

Add the ability to access symbols that are part of subsymbols #19

ghost opened this issue Dec 27, 2019 · 6 comments

Comments

@ghost
Copy link

ghost commented Dec 27, 2019

Example

;Access to another file, this would allow more complex organization
mov !STRINGS.__some_interesting_string, r48

Specifically allow the dot to be used to access sublabels

STRINGS:
.__some_interesting_string:
#str "I am interesting\n\0"

And for example allow scoping of labels so that higher labels are accessable from within sublabels

@ghost ghost changed the title Add the ability to access symbols that are apart of subsymbols Add the ability to access symbols that are part of subsymbols Jan 29, 2020
@ghost
Copy link
Author

ghost commented Jan 29, 2020

Currently I handle things in other files by prefixing them with the name of the file/class
such as
__BIOS_STRINGS__strings__string_name
and accessing it that way

@ghost ghost closed this as completed Jan 29, 2020
@hlorenzi
Copy link
Owner

Why did you close this? :(
I was looking forward to adding this feature!

@ghost
Copy link
Author

ghost commented May 13, 2020

I ended up closing it because I found a workaround. Getting this as a proper feature would be nice. I can reopen the issue if necessary.

@vascofazza
Copy link
Contributor

vascofazza commented May 13, 2020 via email

@ghost
Copy link
Author

ghost commented May 15, 2020

The workaround was to use really long symbol names, with a prefix that was different for each segment of code I wished to keep separate

SECTION_01d3ed6786f9__SZ_b1b28505f770:
#str "NKBootloader Version 7\0"

Or for example, prefix it with the filename that it is in

strings__SZ_bootloader_version_string:
#str "NKBootloader Version 7\0"

@hlorenzi
Copy link
Owner

hlorenzi commented Oct 7, 2020

By the way, this is now possible in v0.11!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants