Skip to content

Add reg! macro? #1

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

Open
mbr opened this issue Oct 11, 2016 · 0 comments
Open

Add reg! macro? #1

mbr opened this issue Oct 11, 2016 · 0 comments

Comments

@mbr
Copy link
Member

mbr commented Oct 11, 2016

As mentioned by @oli-obk , a convenient register macro may be a good thing to spare users from having to write inline-assembly:

reg!(r0) = 42;
*(reg!(r0) + 3 as *const i32) = 42;
x = reg!(r0);
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

1 participant