We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
asm()
data
Right now something like
#include <uxn.h> void main(void) { int n = asm("#1234"); }
compiles to
|0100 LIT2r 0000 main_ POP2r BRK ( bss ) ( data ) @L.data.0_ "#1234 ( <---- oops 😅 ) ( text ) @main_ ( -- result* ) OVR2r LIT2r 0002 SUB2r #1234 STH2kr STA2 #0000 &return POP2r JMP2r
The expected behavior is not to emit @L.data.0_ "#1234.
@L.data.0_ "#1234
The text was updated successfully, but these errors were encountered:
parse: Don't use assembly code as data
088c531
Fixes lynn#29
Successfully merging a pull request may close this issue.
Right now something like
compiles to
The expected behavior is not to emit
@L.data.0_ "#1234
.The text was updated successfully, but these errors were encountered: