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
What if macros were just:
.script export foo = { { 'temp:reg', 'shift:int', 'save:regrange' }, // parameters ` // body ldr $temp, =123 lsls $temp, #$shift push $save ` } .end // invoked via: movs r1, #23 %foo r0, 10, {r0-r3}
The text was updated successfully, but these errors were encountered:
na, I want full scripting, I like something like this better:
.macro %foo temp, shift, save // sink script with temp, shift, save set to strings put """ ldr $temp, =123 lsls $temp, #$shift push $save """ .end %foo r0, 10, {r0-r3}
equivalent to:
.script var temp = 'r0' var shift = 10 var save = '{r0-r3}' put """ ldr $temp, =123 lsls $temp, #$shift push $save """ .end
Sorry, something went wrong.
No branches or pull requests
What if macros were just:
The text was updated successfully, but these errors were encountered: