Created
November 4, 2019 13:51
-
-
Save SteveRohrlack/a74b50cfb7ef7a002d2cfceb29221982 to your computer and use it in GitHub Desktop.
c/c++ inline asm multiline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asm volatile(R"( | |
# r1 = 0 | |
mov r1, #0 | |
# r1 += 5 | |
add r1, r1, #5 | |
# r1 -= 1 | |
sub r1, r1, #1 | |
)"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment