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

Calculate .len of labels automatically #167

Open
hlorenzi opened this issue May 3, 2023 · 0 comments
Open

Calculate .len of labels automatically #167

hlorenzi opened this issue May 3, 2023 · 0 comments

Comments

@hlorenzi
Copy link
Owner

hlorenzi commented May 3, 2023

I recently added #define sizeof(Begin) (pc - Begin)*2 so that I can get the size in bytes of a data region as a constant and it has become an extremely useful feature:

args:
#d16    1, 2, 3, 4, 5
.size = sizeof(args)

mov t0, args.size

Are there any ways to do something like that?

Originally posted by @p-rivero in #68 (comment)

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

No branches or pull requests

1 participant