Skip to content

Instantly share code, notes, and snippets.

@SteveRohrlack
Created November 4, 2019 13:51
Show Gist options
  • Save SteveRohrlack/a74b50cfb7ef7a002d2cfceb29221982 to your computer and use it in GitHub Desktop.
Save SteveRohrlack/a74b50cfb7ef7a002d2cfceb29221982 to your computer and use it in GitHub Desktop.
c/c++ inline asm multiline
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